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

Question about your queue #28

Closed
skateboard opened this issue Mar 9, 2021 · 2 comments
Closed

Question about your queue #28

skateboard opened this issue Mar 9, 2021 · 2 comments

Comments

@skateboard
Copy link

I was reading through WebhookClient and I was wondering after you send the first initial 5 webhooks will it wait to send the 6ith?

I made some mock code

WebhookClient client = WebhookClient.withUrl("WEBHOOK_URL");

for(int i = 0; i < 6; i++) {
   client.send("test #" + i);
}

after the 5th one I get

21:06:15.009 [Webhook-RateLimit Thread WebhookID: WEBHOOK_ID] DEBUG club.minnced.discord.webhook.WebhookClient - Backing off queue for 1999

but the 6ith is never sent? after waiting sometime it never sent so I was wondering if its setup to send after the wait or something.

@MinnDevelopment
Copy link
Owner

The request will be delayed by backoffQueue. The only reason why it wouldn't send would be if you shutdown the executor/webhook client.

I tried your code and it works as expected:

image

@skateboard
Copy link
Author

That's extremely weird I only get to test #4

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

No branches or pull requests

2 participants