Closed DerpyWasHere closed 3 months ago
The constant we compare against
What does 2 mean? 2 seconds to sleep after getting rate limited?
I chose to sleep for the remaining time until reset, but this might introduce blocking behavior we may not want. We could potentially handle this in some sort of priority queue? I think in our case though sleeping for the remaining time is sufficient as we're likely not splitting hairs over ms level behavior.
Do you think this would be worthwhile to implement in the future? If so, let's make an issue for it. I'm happy with extra delay for the time being.
The constant we compare against
What does 2 mean? 2 seconds to sleep after getting rate limited?
2 api calls.
I chose to sleep for the remaining time until reset, but this might introduce blocking behavior we may not want. We could potentially handle this in some sort of priority queue? I think in our case though sleeping for the remaining time is sufficient as we're likely not splitting hairs over ms level behavior.
Do you think this would be worthwhile to implement in the future? If so, let's make an issue for it. I'm happy with extra delay for the time being.
Honestly, not really. I doubt we'll hit a large enough scale to warrant it.
Added rate limiting to
_discord_request()
as described in issue #42.A few design choices we could talk about: