forked from TrueCloudLab/frostfs-node
[#1518] Upgrade NeoFS SDK Go with changed subnet
package
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f602d05b0a
commit
2e4a1cb6df
12 changed files with 32 additions and 90 deletions
|
@ -166,7 +166,7 @@ func (np *Processor) processRemoveSubnetNode(ev subnetEvent.RemoveNode) {
|
|||
}
|
||||
|
||||
rawSubnet := ev.SubnetworkID()
|
||||
subnetToRemoveFrom := &subnetid.ID{}
|
||||
var subnetToRemoveFrom subnetid.ID
|
||||
|
||||
err = subnetToRemoveFrom.Unmarshal(rawSubnet)
|
||||
if err != nil {
|
||||
|
@ -176,7 +176,7 @@ func (np *Processor) processRemoveSubnetNode(ev subnetEvent.RemoveNode) {
|
|||
return
|
||||
}
|
||||
|
||||
if subnetid.IsZero(*subnetToRemoveFrom) {
|
||||
if subnetid.IsZero(subnetToRemoveFrom) {
|
||||
np.log.Warn("got zero subnet in remove node notification")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue