Stop swallowing errors
This commit is contained in:
parent
0ce9ae4809
commit
d77ac5ddcb
@ -468,7 +468,7 @@ func (b *Blockstore) onlineGC(ctx context.Context, threshold float64, checkFreq
|
|||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
err = ctx.Err()
|
err = ctx.Err()
|
||||||
case <-checkTick.C:
|
case <-checkTick.C:
|
||||||
check()
|
err = check()
|
||||||
checkTick.Reset(checkFreq)
|
checkTick.Reset(checkFreq)
|
||||||
default:
|
default:
|
||||||
err = b.db.RunValueLogGC(threshold)
|
err = b.db.RunValueLogGC(threshold)
|
||||||
|
Loading…
Reference in New Issue
Block a user