forked from TrueCloudLab/frostfs-node
[#83] cmd/neofs-node: Add network state option to response service
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
7fdb14cf8a
commit
d05b2ff500
2 changed files with 6 additions and 2 deletions
|
@ -55,7 +55,6 @@ func initNetmapService(c *cfg) {
|
|||
),
|
||||
)
|
||||
|
||||
c.cfgNetmap.state = newNetworkState()
|
||||
addNewEpochNotificationHandler(c, func(ev event.Event) {
|
||||
c.cfgNetmap.state.setCurrentEpoch(ev.(netmapEvent.NewEpoch).EpochNumber())
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue