mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 10:49:24 +08:00
Remove the err brake from PeriodicGC
License: MIT Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
@ -154,7 +154,7 @@ func PeriodicGC(ctx context.Context, node *core.IpfsNode) error {
|
|||||||
case <-time.After(period):
|
case <-time.After(period):
|
||||||
// the private func maybeGC doesn't compute storageMax, storageGC, slackGC so that they are not re-computed for every cycle
|
// the private func maybeGC doesn't compute storageMax, storageGC, slackGC so that they are not re-computed for every cycle
|
||||||
if err := gc.maybeGC(ctx, 0); err != nil {
|
if err := gc.maybeGC(ctx, 0); err != nil {
|
||||||
return err
|
log.Error(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user