File tree Expand file tree Collapse file tree
block/internal/submitting Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,11 +131,6 @@ func (s *Submitter) Stop() error {
131131 return nil
132132}
133133
134- // updateMetrics updates sync-related metrics
135- func (s * Submitter ) updateMetrics () {
136- s .metrics .DAInclusionHeight .Set (float64 (s .GetDAIncludedHeight ()))
137- }
138-
139134// daSubmissionLoop handles submission of headers and data to DA layer (aggregator nodes only)
140135func (s * Submitter ) daSubmissionLoop () {
141136 s .logger .Info ().Msg ("starting DA submission loop" )
@@ -144,9 +139,6 @@ func (s *Submitter) daSubmissionLoop() {
144139 ticker := time .NewTicker (s .config .DA .BlockTime .Duration )
145140 defer ticker .Stop ()
146141
147- metricsTicker := time .NewTicker (30 * time .Second )
148- defer metricsTicker .Stop ()
149-
150142 for {
151143 select {
152144 case <- s .ctx .Done ():
@@ -199,8 +191,8 @@ func (s *Submitter) daSubmissionLoop() {
199191 }()
200192 }
201193 }
202- case <- metricsTicker . C :
203- s .updateMetrics ( )
194+
195+ s .metrics . DAInclusionHeight . Set ( float64 ( s . GetDAIncludedHeight ()) )
204196 }
205197 }
206198}
You can’t perform that action at this time.
0 commit comments