Skip to content

Commit 6fa6446

Browse files
committed
simplify ticket
1 parent ffc898a commit 6fa6446

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

block/internal/submitting/submitter.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff 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)
140135
func (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
}

0 commit comments

Comments
 (0)