We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f7fe9d commit 61470d7Copy full SHA for 61470d7
balance.go
@@ -59,8 +59,12 @@ func (b *balanceScraper) update(ctx context.Context) {
59
return
60
}
61
for i, acc := range res.Value {
62
+ var balance float64
63
+ if acc != nil {
64
+ balance = float64(acc.Lamports)
65
+ }
66
b.GaugeVec.
67
WithLabelValues(b.publishers[i].String()).
- Set(float64(acc.Lamports))
68
+ Set(balance)
69
70
0 commit comments