Skip to content

Commit

Permalink
cmd: fix copyLocks issue (nspcc-dev#2586)
Browse files Browse the repository at this point in the history
copylocks: resetCaches passes lock by value:
github.com/nspcc-dev/neofs-node/cmd/neofs-node.shared contains
sync/atomic.Bool contains sync/atomic.noCopy (govet)

Introduced by nspcc-dev#2485.
  • Loading branch information
roman-khimov authored Sep 19, 2023
2 parents 25fcea8 + 7be2a3c commit 366342d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ jobs:
with:
version: v1.54.0
args: --timeout=5m
only-new-issues: true
2 changes: 1 addition & 1 deletion cmd/neofs-node/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ type shared struct {
metricsCollector *metrics.NodeMetrics
}

func (s shared) resetCaches() {
func (s *shared) resetCaches() {
if s.containerCache != nil {
s.containerCache.reset()
}
Expand Down

0 comments on commit 366342d

Please sign in to comment.