[#411] Remove unnecessary pointers for sync objects
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
f934abed8f
commit
faca861451
20 changed files with 39 additions and 64 deletions
|
@ -29,7 +29,7 @@ type Option func(*cfg)
|
|||
// Traverser represents utility for controlling
|
||||
// traversal of object placement vectors.
|
||||
type Traverser struct {
|
||||
mtx *sync.RWMutex
|
||||
mtx sync.RWMutex
|
||||
|
||||
vectors [][]netmap.NodeInfo
|
||||
|
||||
|
@ -107,7 +107,6 @@ func NewTraverser(opts ...Option) (*Traverser, error) {
|
|||
}
|
||||
|
||||
return &Traverser{
|
||||
mtx: new(sync.RWMutex),
|
||||
rem: rem,
|
||||
vectors: ns,
|
||||
}, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue