mirror of
https://github.com/restic/restic.git
synced 2025-12-03 22:01:46 +00:00
Make BlobHandle substruct of Blob
This commit is contained in:
committed by
Alexander Neumann
parent
c844580e0f
commit
92bd448691
@@ -92,8 +92,10 @@ func newTestRepo(content []TestFile) *TestRepo {
|
||||
if _, found := pack.blobs[blobID]; !found {
|
||||
blobData := seal([]byte(blob.data))
|
||||
pack.blobs[blobID] = restic.Blob{
|
||||
Type: restic.DataBlob,
|
||||
ID: blobID,
|
||||
BlobHandle: restic.BlobHandle{
|
||||
Type: restic.DataBlob,
|
||||
ID: blobID,
|
||||
},
|
||||
Length: uint(len(blobData)),
|
||||
Offset: uint(len(pack.data)),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user