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

Avoid using the same pointer across goroutines #2123

Merged
merged 1 commit into from
Jun 24, 2021
Merged

Conversation

nakabonne
Copy link
Member

What this PR does / why we need it:
Tiny fix not to share the same pointer across goroutines.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.53%. This pull request does not change code coverage.

@nghialv
Copy link
Member

nghialv commented Jun 24, 2021

/lgtm

@nghialv
Copy link
Member

nghialv commented Jun 24, 2021

nit: PR title

Avoid using the same pointer across goroutines

@nakabonne nakabonne changed the title Ensure to copy loop variable Avoid using the same pointer across goroutines Jun 24, 2021
@khanhtc1202
Copy link
Member

Nice catch ⚾
/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by khanhtc1202.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

@pipecd-bot pipecd-bot merged commit 42fadf7 into master Jun 24, 2021
@pipecd-bot pipecd-bot deleted the fix-event-copy branch June 24, 2021 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants