Skip to content

Commit

Permalink
simplify metric
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed May 13, 2024
1 parent 0facc1e commit f290b86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion block/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (m *Manager) HandleSubmissionTrigger() error {
return fmt.Errorf("sl client submit batch: start height: %d: inclusive end height: %d: %w", startHeight, actualEndHeight, err)
}

types.RollappHubHeightGauge.Set(float64(actualEndHeight)) // TODO(danwt): check
types.RollappHubHeightGauge.Set(float64(actualEndHeight))
m.LastSubmittedHeight = actualEndHeight
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion block/synctarget.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ func (m *Manager) SyncToTargetHeightLoop(ctx context.Context) {
)
continue
}
types.RollappHubHeightGauge.Set(float64(h))
m.targetSyncHeight.Set(diodes.GenericDataType(&h))
m.logger.Info("Set new target sync height", "height", h)
types.RollappHubHeightGauge.Set(float64(h)) // TODO(danwt): needed?
case <-subscription.Cancelled():
m.logger.Info("syncTargetLoop subscription canceled")
return
Expand Down

0 comments on commit f290b86

Please sign in to comment.