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

Add lock before call acmeCheck() #935

Merged
merged 1 commit into from
Jul 3, 2022
Merged

Add lock before call acmeCheck() #935

merged 1 commit into from
Jul 3, 2022

Conversation

jcmoraisjr
Copy link
Owner

AcmeCheck() is an instance's method that can be triggered from three distinct goroutines. Although it doesn't change the model, it reads it and can lead to inconsistent data or even a race in the map of acme related data if called concurrently with a model update. This commit prevents that AcmeCheck() is called during instance's model updates.

AcmeCheck() is an instance's method that can be triggered from three
distinct goroutines. Although it doesn't change the model, it reads it
and can lead to inconsistent data or even a race in the map of acme
related data if called concurrently with a model update. This commit
prevents that AcmeCheck() is called during instance's model updates.
@jcmoraisjr jcmoraisjr merged commit 7b32915 into master Jul 3, 2022
@jcmoraisjr jcmoraisjr deleted the jm-acme-lock branch July 3, 2022 13:50
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.

1 participant