Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd: fix copyLocks issue #2586

Merged
merged 2 commits into from
Sep 19, 2023
Merged

cmd: fix copyLocks issue #2586

merged 2 commits into from
Sep 19, 2023

Conversation

roman-khimov
Copy link
Member

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 #2485.

  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 #2485.

Signed-off-by: Roman Khimov <[email protected]>
Copy link
Member

@carpawell carpawell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont we want to run the linter against the whole project?
It would have prevented that PR.

@roman-khimov
Copy link
Member Author

Of course we want to. IIRC it was discussed already some time ago.

Sometimes touching one line of code breaks the other and we're 100% clean now.

Signed-off-by: Roman Khimov <[email protected]>
@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #2586 (ab7bcf9) into master (25fcea8) will increase coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head ab7bcf9 differs from pull request most recent head 7be2a3c. Consider uploading reports for the commit 7be2a3c to get more accurate results

@@           Coverage Diff           @@
##           master    #2586   +/-   ##
=======================================
  Coverage   29.82%   29.83%           
=======================================
  Files         406      406           
  Lines       31019    31019           
=======================================
+ Hits         9252     9255    +3     
+ Misses      20956    20954    -2     
+ Partials      811      810    -1     
Files Changed Coverage Δ
cmd/neofs-node/config.go 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@roman-khimov roman-khimov merged commit 366342d into master Sep 19, 2023
6 of 8 checks passed
@roman-khimov roman-khimov deleted the fix-sync-atomic-nocopy branch September 19, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants