[#1845] morph/client: Use 0 as OfflineState in update peer
As the documentation prescribes. Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
01ddb3f8e6
commit
c20c2e3b39
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@ func (c *Client) UpdatePeerState(p UpdatePeerPrm) error {
|
||||||
method += "IR"
|
method += "IR"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if p.state == 0 {
|
||||||
|
p.state = netmap.NodeStateOffline
|
||||||
|
}
|
||||||
|
|
||||||
prm := client.InvokePrm{}
|
prm := client.InvokePrm{}
|
||||||
prm.SetMethod(method)
|
prm.SetMethod(method)
|
||||||
prm.SetArgs(int64(p.state), p.key)
|
prm.SetArgs(int64(p.state), p.key)
|
||||||
|
|
Loading…
Reference in a new issue