@@ -25,7 +25,7 @@ type SwitchSequencer struct {
25
25
espresso * EspressoSequencer
26
26
27
27
switchPollInterval time.Duration
28
- swtichDelayThreshold uint64
28
+ switchDelayThreshold uint64
29
29
lightClient lightClient.LightClientReaderInterface
30
30
31
31
mode int
@@ -52,7 +52,7 @@ func NewSwitchSequencer(centralized *Sequencer, espresso *EspressoSequencer, l1c
52
52
lightClient : lightclient ,
53
53
mode : SequencingMode_Espresso ,
54
54
switchPollInterval : config .SwitchPollInterval ,
55
- swtichDelayThreshold : config .SwitchDelayThreshold ,
55
+ switchDelayThreshold : config .SwitchDelayThreshold ,
56
56
}, nil
57
57
}
58
58
@@ -64,7 +64,7 @@ func (s *SwitchSequencer) SwitchToEspresso(ctx context.Context) error {
64
64
if s .IsRunningEspressoMode () {
65
65
return nil
66
66
}
67
- log .Info ("Switching to espresso sequencer" , "max hotshot drift time " , s .maxHotShotDriftTime )
67
+ log .Info ("Switching to espresso sequencer" , "switchDelayThreshold " , s .switchDelayThreshold )
68
68
69
69
s .mode = SequencingMode_Espresso
70
70
@@ -77,7 +77,7 @@ func (s *SwitchSequencer) SwitchToCentralized(ctx context.Context) error {
77
77
return nil
78
78
}
79
79
s .mode = SequencingMode_Centralized
80
- log .Warn ("Switching to centrialized sequencer" , "max hotshot drift time " , s .maxHotShotDriftTime )
80
+ log .Warn ("Switching to centrialized sequencer" , "switchDelayThreshold " , s .switchDelayThreshold )
81
81
82
82
s .espresso .StopAndWait ()
83
83
return s .centralized .Start (ctx )
@@ -116,7 +116,7 @@ func (s *SwitchSequencer) Start(ctx context.Context) error {
116
116
117
117
if s .lightClient != nil {
118
118
s .CallIteratively (func (ctx context.Context ) time.Duration {
119
- isLive , err := s .lightClient .IsHotShotLive (s .swtichDelayThreshold )
119
+ isLive , err := s .lightClient .IsHotShotLive (s .switchDelayThreshold )
120
120
if err != nil {
121
121
return s .switchPollInterval
122
122
}
@@ -128,7 +128,7 @@ func (s *SwitchSequencer) Start(ctx context.Context) error {
128
128
}
129
129
130
130
if err != nil {
131
- log .Error ("Error swithcing mode" , "err" , err )
131
+ log .Error ("Error switching mode" , "err" , err )
132
132
return 0
133
133
}
134
134
return s .switchPollInterval
0 commit comments