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 the majority of verification race conditions #4

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

Minion3665
Copy link
Member

There is currently a high potential for race conditions when multiple verifiers attempt to verify a user at the same time. This PR fixes the majority of these cases

Data races can probably still occur in the following cases:

  • If Discord is still adding the role when we fetch the user for the second time
  • If we don't all verify, for example if someone does a kick and someone else does a verify

These are substantially less likely than the common case, which has happened several times now

This was ported over from TransGG/theo#5

Data races can probably still occur in the following cases:
- If Discord is still adding the role when we fetch the user for the
  second time
- If we don't all verify, for example if someone does a kick and someone
  else does a verify

These are substantially less likely than the common case, which has
happened several times now

This was ported over from TransGG/theo#5
@Minion3665 Minion3665 self-assigned this Dec 30, 2022
@elise32 elise32 merged commit cf37a68 into main Dec 30, 2022
@elise32 elise32 deleted the fix-common-data-race branch December 30, 2022 00:08
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