Skip to content

Commit

Permalink
fix running with backoff periods
Browse files Browse the repository at this point in the history
  • Loading branch information
freigeistig committed Jul 25, 2023
1 parent 414dcda commit d2ff754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ func (s *service) run() error {
running.WithBackOff(
context.Background(), s.log, "indexer",
runner.run,
s.cfg.Network().IndexPeriod, s.cfg.Network().IndexPeriod, 10*time.Minute)
s.cfg.Network().IndexPeriod, s.cfg.Network().IndexPeriod, time.Minute)
} else {
running.WithBackOff(
context.Background(), s.log, "indexer",
runner.runWithoutWs,
s.cfg.Network().IndexPeriod, s.cfg.Network().IndexPeriod, 10*time.Minute)
s.cfg.Network().IndexPeriod, s.cfg.Network().IndexPeriod, time.Minute)
}

return nil
Expand Down

0 comments on commit d2ff754

Please sign in to comment.