Skip to content

Commit

Permalink
Fix the stringify of quorumID
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Apr 19, 2024
1 parent 898eb10 commit 4e6db1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions node/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package node

import (
"context"
"fmt"
"math/big"
"sort"
"strconv"
Expand Down Expand Up @@ -216,8 +217,8 @@ func (g *Metrics) collectOnchainMetrics() {
})
for i, op := range operatorStakeShares {
if op.operatorId == g.operatorId {
g.RegisteredQuorums.WithLabelValues(string(q), "stake_share").Set(op.stakeShare)
g.RegisteredQuorums.WithLabelValues(string(q), "rank").Set(float64(i + 1))
g.RegisteredQuorums.WithLabelValues(fmt.Sprintf("%d", q), "stake_share").Set(op.stakeShare)
g.RegisteredQuorums.WithLabelValues(fmt.Sprintf("%d", q), "rank").Set(float64(i + 1))
g.logger.Info("Current operator registration onchain", "operatorId", g.operatorId.Hex(), "blockNumber", blockNum, "quorumId", q, "stakeShare (basis point)", op.stakeShare, "rank", i+1)
break
}
Expand Down

0 comments on commit 4e6db1c

Please sign in to comment.