mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-02 06:47:51 +08:00
Merge 9db55c3fa5 into aa3c88dcdd
This commit is contained in:
commit
cd2e08db42
@ -489,10 +489,12 @@ func SweepingProviderOpt(cfg *config.Config) fx.Option {
|
||||
strategy := cfg.Provide.Strategy.WithDefault(config.DefaultProvideStrategy)
|
||||
logger.Infow("provider keystore sync started", "strategy", strategy)
|
||||
if err := syncKeystore(ctx); err != nil {
|
||||
logger.Errorw("provider keystore sync failed", "err", err, "strategy", strategy)
|
||||
} else {
|
||||
logger.Infow("provider keystore sync completed", "strategy", strategy)
|
||||
if ctx.Err() == nil {
|
||||
logger.Errorw("provider keystore sync failed", "err", err, "strategy", strategy)
|
||||
}
|
||||
return
|
||||
}
|
||||
logger.Infow("provider keystore sync completed", "strategy", strategy)
|
||||
}()
|
||||
|
||||
gcCtx, c := context.WithCancel(context.Background())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user