mirror of
https://github.com/restic/restic.git
synced 2025-10-09 19:10:25 +00:00
Refactor backends
This commit is contained in:
@@ -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, sn)
|
||||
err := s.LoadJSONID(backend.Snapshot, id.String(), sn)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user