Return size in bufbs.GetSize

This commit is contained in:
Łukasz Magiera 2020-07-23 10:23:44 +02:00 committed by GitHub
parent 54c0ae17f4
commit df801470ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ func (bs *BufferedBS) GetSize(c cid.Cid) (int, error) {
return bs.write.GetSize(c) return bs.write.GetSize(c)
} }
return 0, err return s, err
} }
func (bs *BufferedBS) Put(blk block.Block) error { func (bs *BufferedBS) Put(blk block.Block) error {