Skip to content

Commit

Permalink
Don't use cached config in iteratively called function
Browse files Browse the repository at this point in the history
  • Loading branch information
anodar committed Jun 5, 2024
1 parent 4737526 commit d77f405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execution/gethexec/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ func (s *Sequencer) Start(ctxIn context.Context) error {
}

s.CallIteratively(func(ctx context.Context) time.Duration {
nextBlock := time.Now().Add(config.MaxBlockSpeed)
nextBlock := time.Now().Add(s.config().MaxBlockSpeed)
if s.createBlock(ctx) {
// Note: this may return a negative duration, but timers are fine with that (they treat negative durations as 0).
return time.Until(nextBlock)
Expand Down

0 comments on commit d77f405

Please sign in to comment.