[#1680] replicator: Work with netmap.NodeInfo in TaskResult

Make `replicator.TaskResult` to accept `netmap.NodeInfo` type instead of
uint64 in order to clarify the meaning and prevent passing the random
numbers.

Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
This commit is contained in:
Leonard Lyubich 2022-10-07 13:26:08 +04:00 committed by fyrchik
parent e6f8904040
commit df5d7bf729
4 changed files with 20 additions and 11 deletions

View file

@ -13,7 +13,7 @@ func TestNodeCache(t *testing.T) {
require.Negative(t, cache.processStatus(node))
cache.SubmitSuccessfulReplication(node.Hash())
cache.SubmitSuccessfulReplication(node)
require.Zero(t, cache.processStatus(node))
cache.submitReplicaCandidate(node)