From 71b17cc4434ff9f0e0da02df886ed54bc05f93f6 Mon Sep 17 00:00:00 2001 From: bnoieh <135800952+bnoieh@users.noreply.github.com> Date: Thu, 11 Jan 2024 20:02:26 +0800 Subject: [PATCH] fix(op-node): remove 3s stepCtx for sequencer (#111) --- op-node/rollup/driver/state.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/op-node/rollup/driver/state.go b/op-node/rollup/driver/state.go index b384b233ad..883f4ebefb 100644 --- a/op-node/rollup/driver/state.go +++ b/op-node/rollup/driver/state.go @@ -369,13 +369,7 @@ func (s *Driver) eventLoop() { case <-stepReqCh: s.metrics.SetDerivationIdle(false) s.log.Debug("Derivation process step", "onto_origin", s.derivation.Origin(), "attempts", stepAttempts) - stepCtx := context.Background() - if s.driverConfig.SequencerEnabled && !s.driverConfig.SequencerStopped && s.driverConfig.SequencerPriority { - var cancelStep context.CancelFunc - stepCtx, cancelStep = context.WithTimeout(ctx, 3*time.Second) - defer cancelStep() - } - err := s.derivation.Step(stepCtx) + err := s.derivation.Step(context.Background()) stepAttempts += 1 // count as attempt by default. We reset to 0 if we are making healthy progress. if err == io.EOF { s.log.Debug("Derivation process went idle", "progress", s.derivation.Origin(), "err", err)