mirror of
https://github.com/restic/restic.git
synced 2025-12-12 13:51:54 +00:00
repository: fix parameter order of LookupBlobSize
All methods should use blobType followed by ID.
This commit is contained in:
@@ -435,7 +435,7 @@ func (res *Restorer) verifyFile(target string, node *restic.Node, buf []byte) ([
|
||||
|
||||
var offset int64
|
||||
for _, blobID := range node.Content {
|
||||
length, found := res.repo.LookupBlobSize(blobID, restic.DataBlob)
|
||||
length, found := res.repo.LookupBlobSize(restic.DataBlob, blobID)
|
||||
if !found {
|
||||
return buf, errors.Errorf("Unable to fetch blob %s", blobID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user