Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Mar 7, 2024
1 parent 1730d29 commit 7125440
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/prometheus/metrics_tangle.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const (

strongTipsCount = "strong_tips_count"
weakTipsCount = "weak_tips_count"
bookeBlocksTotal = "booked_blocks_total"
bookedBlocksTotal = "booked_blocks_total"
missingBlocksCount = "missing_blocks_total"
acceptedBlocksCount = "accepted_blocks_count"
)
Expand All @@ -35,12 +35,12 @@ var TangleMetrics = collector.NewCollection(tangleNamespace,
return float64(count), nil
}),
)),
collector.WithMetric(collector.NewMetric(bookeBlocksTotal,
collector.WithMetric(collector.NewMetric(bookedBlocksTotal,
collector.WithType(collector.Counter),
collector.WithHelp("Total number of blocks booked."),
collector.WithInitFunc(func() {
deps.Protocol.Events.Engine.Booker.BlockBooked.Hook(func(_ *blocks.Block) {
deps.Collector.Increment(tangleNamespace, bookeBlocksTotal)
deps.Collector.Increment(tangleNamespace, bookedBlocksTotal)
}, event.WithWorkerPool(Component.WorkerPool))
}),
)),
Expand Down

0 comments on commit 7125440

Please sign in to comment.