Skip to content

Commit

Permalink
renames.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmd authored and jmd committed Nov 16, 2023
1 parent a1e9a44 commit fde9714
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/DotJEM.Json.Index2.Snapshots.Test/SnapshotsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class FakeSnapshotStorage : ISnapshotStorage

public IReadOnlyCollection<ISnapshot> Snapshots => new List<ISnapshot> { LastCreated };

public ISnapshot Open(IndexCommit commit)
public ISnapshot CreateSnapshot(IndexCommit commit)
{
return LastCreated = new FakeSnapshot(commit.Generation);

Expand Down
2 changes: 1 addition & 1 deletion src/DotJEM.Json.Index2.Snapshots/ISnapshotStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ public interface ISnapshotStorage
{
IReadOnlyCollection<ISnapshot> Snapshots { get; }

ISnapshot Open(IndexCommit commit);
ISnapshot CreateSnapshot(IndexCommit commit);
}
2 changes: 1 addition & 1 deletion src/DotJEM.Json.Index2.Snapshots/IndexSnapshotHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task<ISnapshot> TakeSnapshotAsync(IJsonIndex index, ISnapshotStorag
commit = sdp.Snapshot();
Directory dir = commit.Directory;

ISnapshot snapshot = storage.Open(commit);
ISnapshot snapshot = storage.CreateSnapshot(commit);
using ISnapshotWriter snapshotWriter = snapshot.OpenWriter();
foreach (string fileName in commit.FileNames)
await snapshotWriter.WriteFileAsync(fileName, dir);
Expand Down
2 changes: 1 addition & 1 deletion src/DotJEM.Json.Index2.Snapshots/Zip/ZipSnapshotStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public ZipSnapshotStorage(string path)
this.path = path;
}

public ISnapshot Open(IndexCommit commit)
public ISnapshot CreateSnapshot(IndexCommit commit)
{
string snapshotPath = Path.Combine(path, $"{commit.Generation:x8}.zip");
ZipFileSnapshot snapshot = new ZipFileSnapshot(snapshotPath);
Expand Down

0 comments on commit fde9714

Please sign in to comment.