mirror of
https://github.com/restic/restic.git
synced 2025-10-10 12:00:56 +00:00
Make BlobHandle substruct of Blob
This commit is contained in:

committed by
Alexander Neumann

parent
c844580e0f
commit
92bd448691
@@ -35,7 +35,7 @@ func (p *Packer) Add(t restic.BlobType, id restic.ID, data []byte) (int, error)
|
||||
p.m.Lock()
|
||||
defer p.m.Unlock()
|
||||
|
||||
c := restic.Blob{Type: t, ID: id}
|
||||
c := restic.Blob{BlobHandle: restic.BlobHandle{Type: t, ID: id}}
|
||||
|
||||
n, err := p.wr.Write(data)
|
||||
c.Length = uint(n)
|
||||
|
Reference in New Issue
Block a user