forked from TrueCloudLab/frostfs-node
[#1680] morph/netmap: Pre-refactor processing of node states
New network status of storage nodes is going to be introduced. To simplify the addition, it would be useful to prepare the code for this. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
4c94faac67
commit
42fb40e841
4 changed files with 30 additions and 10 deletions
|
@ -66,7 +66,7 @@ func ParseUpdatePeerNotary(ne event.NotaryEvent) (event.Event, error) {
|
|||
return nil, fmt.Errorf("unsupported node state %d", err)
|
||||
case v2netmap.Offline:
|
||||
case v2netmap.Online:
|
||||
ev.online = true
|
||||
ev.state = stateOnline
|
||||
}
|
||||
|
||||
fieldNum++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue