Skip to content

Commit 5a9ba8d

Browse files
pnewelldimitribouniol
authored andcommitted
Update loadManifest to use correct url for reopening Datastore
1 parent 3a41614 commit 5a9ba8d

File tree

1 file changed

+1
-1
lines changed
  • Sources/CodableDatastore/Persistence/Disk Persistence/Snapshot

1 file changed

+1
-1
lines changed

Sources/CodableDatastore/Persistence/Disk Persistence/Snapshot/Snapshot.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ extension Snapshot {
106106
/// Load the manifest from disk, or create a suitable starting value if such a file does not exist.
107107
private func loadManifest() throws -> SnapshotManifest {
108108
do {
109-
let data = try Data(contentsOf: snapshotURL)
109+
let data = try Data(contentsOf: manifestURL)
110110

111111
let manifest = try JSONDecoder.shared.decode(SnapshotManifest.self, from: data)
112112

0 commit comments

Comments
 (0)