forked from TrueCloudLab/frostfs-node
[#300] innerring: Fix status value in update peer state invocation
We can't use enum values from SDK library directly, they can be different from API specification. Therefore we need to convert them into protocol level format. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
27711d64f0
commit
3bbd0bc95c
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ func UpdatePeerState(cli *client.Client, con util.Uint160, args *UpdatePeerArgs)
|
||||||
}
|
}
|
||||||
|
|
||||||
return cli.Invoke(con, extraFee, updatePeerStateMethod,
|
return cli.Invoke(con, extraFee, updatePeerStateMethod,
|
||||||
int64(args.Status),
|
int64(args.Status.ToV2()),
|
||||||
args.Key.Bytes(),
|
args.Key.Bytes(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue