mirror of
https://github.com/restic/restic.git
synced 2026-11-10 00:38:40 +00:00
repository: change LoadBlob, LookupBlob and LookupBlobSize to BlobHandles (#21857)
This commit is contained in:
1 parent
71f38d266c
commit
7d36449ea8
27 files changed
+85
-85
No files matched your search
@@ -124,7 +124,7 @@ func filterTrees(ctx context.Context, repo restic.Loader, trees restic.IDs, load
|
||||
continue
|
||||
}
|
||||
|
||||
treeSize, found := repo.LookupBlobSize(restic.TreeBlob, nextTreeID.ID)
|
||||
treeSize, found := repo.LookupBlobSize(restic.BlobHandle{Type: restic.TreeBlob, ID: nextTreeID.ID})
|
||||
if found && treeSize > 50*1024*1024 {
|
||||
loadCh = hugeTreeLoaderChan
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user