forked from TrueCloudLab/frostfs-node
[#1110] node: Rename handleLocalNodeInfo()
It is used in "handler" only once, what we really do is set the variable. And we have another "local" node info in `cfgNodeInfo`, this one is not really local (node info), more like (local node) info, so use setContractNodeInfo to distinguish it from the local view on the node info. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
3b9d12b11c
commit
c8e2ca2ab4
2 changed files with 4 additions and 4 deletions
|
@ -199,7 +199,7 @@ func addNewEpochNotificationHandlers(c *cfg) {
|
|||
return
|
||||
}
|
||||
|
||||
c.handleLocalNodeInfo(ni)
|
||||
c.setContractNodeInfo(ni)
|
||||
})
|
||||
|
||||
if c.cfgMorph.notaryEnabled {
|
||||
|
@ -270,7 +270,7 @@ func initNetmapState(c *cfg) {
|
|||
|
||||
c.cfgNetmap.state.setCurrentEpoch(epoch)
|
||||
c.cfgNetmap.startEpoch = epoch
|
||||
c.handleLocalNodeInfo(ni)
|
||||
c.setContractNodeInfo(ni)
|
||||
}
|
||||
|
||||
func nodeState(ni *netmapSDK.NodeInfo) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue