[#227] netmap: Fix minor blots in documentation/code

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-06-14 17:27:51 +03:00 committed by LeL
parent ca523f1ff1
commit d648b86776
10 changed files with 46 additions and 45 deletions

View file

@ -20,7 +20,7 @@ func newFilter(name string, k, v string, op netmap.Operation, fs ...Filter) (f F
func newSelector(name string, attr string, count uint32, filter string, clause func(*Selector)) (s Selector) {
s.SetName(name)
s.SelectByBucketAttribute(attr)
s.SetNodeAmount(count)
s.SetNumberOfNodes(count)
clause(&s)
s.SetFilterName(filter)
return s
@ -35,7 +35,7 @@ func newPlacementPolicy(bf uint32, rs []ReplicaDescriptor, ss []Selector, fs []F
}
func newReplica(c uint32, s string) (r ReplicaDescriptor) {
r.SetAmount(c)
r.SetNumberOfObjects(c)
r.SetSelectorName(s)
return r
}