Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Apr 18, 2024
1 parent f0ed246 commit 0b09f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/dashboard_metrics/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ func configure() error {
func run() error {
Component.Logger.LogInfof("Starting %s ...", Component.Name)

// create a background worker that "measures" the BPS value every second
if err := Component.Daemon().BackgroundWorker("Metrics BPS Updater", func(ctx context.Context) {
// create a background worker that "measures" the gossip metrics every second
if err := Component.Daemon().BackgroundWorker("GossipMetrics Updater", func(ctx context.Context) {
timeutil.NewTicker(measureGossipMetrics, 1*time.Second, ctx).WaitForGracefulShutdown()
}, daemon.PriorityDashboardMetrics); err != nil {
Component.LogPanicf("failed to start worker: %s", err)
Expand Down

0 comments on commit 0b09f90

Please sign in to comment.