Stop swallowing errors

This commit is contained in:
zenground0 2023-03-30 12:53:35 -06:00 committed by Phi
parent 0ce9ae4809
commit d77ac5ddcb

View File

@ -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)