polish(chainwatch): relax scheduler refresh
This commit is contained in:
parent
5e40dda3bc
commit
fccdd70524
@ -40,7 +40,7 @@ func (s *Scheduler) Start(ctx context.Context) {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
// run once on start after schema has initialized
|
// run once on start after schema has initialized
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(1 * time.Minute)
|
||||||
if err := refreshTopMinerByBaseReward(ctx, s.db); err != nil {
|
if err := refreshTopMinerByBaseReward(ctx, s.db); err != nil {
|
||||||
log.Errorw("failed to refresh top miner", "error", err)
|
log.Errorw("failed to refresh top miner", "error", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user