Skip to content

Commit b69cb43

Browse files
Merge pull request #609 from shutter-network/feat/EL/CL-metrics
chore: fix GetBeaconNodeVersion metrics
2 parents 27d116c + 6a65415 commit b69cb43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rolling-shutter/keyperimpl/gnosis/keyper.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ func New(c *Config) *Keyper {
7171
func (kpr *Keyper) Start(ctx context.Context, runner service.Runner) error {
7272
var err error
7373

74-
if kpr.config.Metrics.Enabled {
75-
InitMetrics(kpr.beaconAPIClient)
76-
}
77-
7874
kpr.newBlocks = make(chan *syncevent.LatestBlock)
7975
kpr.newKeyperSets = make(chan *syncevent.KeyperSet)
8076
kpr.newEonPublicKeys = make(chan keyper.EonPublicKey)
@@ -150,6 +146,10 @@ func (kpr *Keyper) Start(ctx context.Context, runner service.Runner) error {
150146
return err
151147
}
152148

149+
if kpr.config.Metrics.Enabled {
150+
InitMetrics(kpr.beaconAPIClient)
151+
}
152+
153153
// Set all transaction pointer ages to infinity. They will be reset to zero when the next
154154
// decryption keys arrive, telling us the agreed upon pointer value. Pointer values that are
155155
// not in the db yet are not affected. They will be initialized to zero when we first access

0 commit comments

Comments
 (0)