mirror of
https://github.com/restic/restic.git
synced 2026-11-28 15:26:48 +00:00
Add checks for Server.Load(), use Blob for load
This commit is contained in:
1 parent
5e69788eac
commit
f157f775da
16 files changed
+120
-131
No files matched your search
+1
-1
@@ -51,7 +51,7 @@ func NewSnapshot(paths []string) (*Snapshot, error) {
|
||||
|
||||
func LoadSnapshot(s Server, id backend.ID) (*Snapshot, error) {
|
||||
sn := &Snapshot{id: id}
|
||||
err := s.LoadJSONID(backend.Snapshot, id.String(), sn)
|
||||
err := s.LoadJSONID(backend.Snapshot, id, sn)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user