repository: unwrap BlobHandle parameters of LookupBlob

The method now uses the same parameters as LookupBlobSize.
This commit is contained in:
Michael Eischer committed 2024-05-24 21:33:17 +02:00
1 parent 1266a4932f
commit 864995271e
10 files changed
+18 -18

No files matched your search

+2 -2
View File
@@ -578,8 +578,8 @@ func (r *Repository) Connections() uint {
return r.be.Connections()
}
func (r *Repository) LookupBlob(bh restic.BlobHandle) []restic.PackedBlob {
return r.idx.Lookup(bh)
func (r *Repository) LookupBlob(tpe restic.BlobType, id restic.ID) []restic.PackedBlob {
return r.idx.Lookup(restic.BlobHandle{Type: tpe, ID: id})
}
// LookupBlobSize returns the size of blob id.