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

test: use pointer receivers to avoid lock copies #15217

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Conversation

mark-rushakoff
Copy link
Member

Description

There were several test suite methods that had a value receiver, and which were being ignored for linting. Instead of ignoring the error, use pointer receivers to properly avoid lock copying.

And use a local copy of one loop variable in a possible closure.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • confirmed that this PR does not change production code

There were several test suite methods that had a value receiver, and
which were being ignored for linting. Instead of ignoring the error, use
pointer receivers to properly avoid lock copying.

And use a local copy of one loop variable in a possible closure.
@julienrbrt
Copy link
Member

Unrelated but second time I see this one pop-up: https://github.com/cosmos/cosmos-sdk/actions/runs/4295303107/jobs/7485538761

@mark-rushakoff mark-rushakoff added the A:automerge Automatically merge PR once all prerequisites pass. label Feb 28, 2023
@mergify mergify bot merged commit 261af67 into main Feb 28, 2023
@mergify mergify bot deleted the mr/vet-lock-copy branch February 28, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:x/authz C:x/capability C:x/group C:x/upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants