mirror of
https://github.com/restic/restic.git
synced 2026-11-06 15:29:21 +00:00
repository: move Blob, Blobs and PackedBlob to pack package
This removes them from the public interface. The latter now only provides the PackBlob interface, without being bound to the type used internally by the pack package.
This commit is contained in:
1 parent
35af104749
commit
c062a78dcd
27 files changed
+373
-345
No files matched your search
@@ -246,9 +246,8 @@ func packInfoFromIndex(ctx context.Context, idx restic.ListBlobser, usedBlobs *i
|
||||
ip.tpe = restic.InvalidBlob
|
||||
}
|
||||
|
||||
bh := h
|
||||
size := uint64(blob.CiphertextLength())
|
||||
dupCount, _ := usedBlobs.Get(bh)
|
||||
dupCount, _ := usedBlobs.Get(h)
|
||||
switch {
|
||||
case dupCount >= 2:
|
||||
hasDuplicates = true
|
||||
|
||||
Reference in new issue
Block a user