forked from TrueCloudLab/frostfs-node
parent
a26483fc30
commit
c7a7229484
|
@ -562,10 +562,11 @@ func initCfg(appCfg *config.Config) *cfg {
|
||||||
relayOnly := nodeconfig.Relay(appCfg)
|
relayOnly := nodeconfig.Relay(appCfg)
|
||||||
|
|
||||||
netState := newNetworkState()
|
netState := newNetworkState()
|
||||||
netState.metrics = c.metricsCollector
|
|
||||||
|
|
||||||
c.shared = initShared(appCfg, key, netState, relayOnly)
|
c.shared = initShared(appCfg, key, netState, relayOnly)
|
||||||
|
|
||||||
|
netState.metrics = c.metricsCollector
|
||||||
|
|
||||||
logPrm, err := c.loggerPrm()
|
logPrm, err := c.loggerPrm()
|
||||||
fatalOnErr(err)
|
fatalOnErr(err)
|
||||||
logPrm.SamplingHook = c.metricsCollector.LogMetrics().GetSamplingHook()
|
logPrm.SamplingHook = c.metricsCollector.LogMetrics().GetSamplingHook()
|
||||||
|
|
Loading…
Reference in New Issue