mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 11:57:44 +08:00
blockstore: cleanup style a bit
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
4183902e46
commit
9543ed6ca1
@ -102,12 +102,13 @@ func (b *arccache) PutMany(bs []blocks.Block) error {
|
||||
}
|
||||
}
|
||||
err := b.blockstore.PutMany(bs)
|
||||
if err == nil {
|
||||
for _, block := range bs {
|
||||
b.arc.Add(block.Key(), true)
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return err
|
||||
for _, block := range bs {
|
||||
b.arc.Add(block.Key(), true)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b *arccache) AllKeysChan(ctx context.Context) (<-chan key.Key, error) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user