forked from TrueCloudLab/frostfs-node
[#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:
parent
e6f8904040
commit
df5d7bf729
4 changed files with 20 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue