-
Notifications
You must be signed in to change notification settings - Fork 12
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Duplicate ticket number #85
Comments
I believe there's a different issue at play. I've noticed that the duplicate tickets always come from the same person, as if the button interaction was sent twice. What I could do is disable the button after it's been clicked, and then release it after the ticket is created to confirm this theory maybe. |
Something something idempotency something something. But I'm fairly sure it's a locking issue, why would the second interaction ever get the old id otherwise? |
Locking this particular function would ensure the counter increments correctly, but it wouldn't prevent the creation of two separate channels, right? |
ddnet-discordbot/cogs/ticketsystem/buttons.py
Line 44 in ac4e07d
Need to wrap this function with a lock
The text was updated successfully, but these errors were encountered: