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

fix unsafe map usage in singletonMode #665

Merged
merged 3 commits into from
Jan 30, 2024
Merged

fix unsafe map usage in singletonMode #665

merged 3 commits into from
Jan 30, 2024

Conversation

JohnRoesler
Copy link
Contributor

What does this do?

Switches the map used for singleton runners to use sync.Map to prevent unsafe calls from multiple goroutines

Which issue(s) does this PR fix/relate to?

closes #663 thanks @a3sroot for finding and starting that
resolves #661

List any changes that modify/break current functionality

Have you included tests for your changes?

Did you document any new/modified functionality?

  • Updated example_test.go
  • Updated README.md

Notes

@JohnRoesler JohnRoesler changed the title Fix/singleton mode fix unsafe map usage in singletonMode Jan 30, 2024
@JohnRoesler JohnRoesler merged commit 567cb96 into v2 Jan 30, 2024
3 checks passed
@JohnRoesler JohnRoesler deleted the fix/singletonMode branch January 30, 2024 21:50
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.

[BUG] - An unsafe map call exists for singletonMode.
2 participants