[#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:
Evgenii Stratonikov 2022-10-06 11:51:22 +03:00 committed by fyrchik
parent 01ddb3f8e6
commit c20c2e3b39

View file

@ -46,6 +46,10 @@ func (c *Client) UpdatePeerState(p UpdatePeerPrm) error {
method += "IR"
}
if p.state == 0 {
p.state = netmap.NodeStateOffline
}
prm := client.InvokePrm{}
prm.SetMethod(method)
prm.SetArgs(int64(p.state), p.key)