Fix epoch metric #773
1 changed files with 2 additions and 1 deletions
|
@ -562,10 +562,11 @@ func initCfg(appCfg *config.Config) *cfg {
|
|||
relayOnly := nodeconfig.Relay(appCfg)
|
||||
|
||||
netState := newNetworkState()
|
||||
netState.metrics = c.metricsCollector
|
||||
|
||||
c.shared = initShared(appCfg, key, netState, relayOnly)
|
||||
|
||||
netState.metrics = c.metricsCollector
|
||||
|
||||
logPrm, err := c.loggerPrm()
|
||||
fatalOnErr(err)
|
||||
logPrm.SamplingHook = c.metricsCollector.LogMetrics().GetSamplingHook()
|
||||
|
|
Loading…
Reference in a new issue