discordgo icon indicating copy to clipboard operation
discordgo copied to clipboard

How to make RateLimit work in multiple process?

Open mike-myshell opened this issue 8 months ago • 0 comments

I read through the code for the rate limiter section, and I noticed there may be some issues in a multi-process environment. The rate limiter relies on sync.mutex to acquire locks, which is on a process level. In a multi-process environment, wouldn't this cause problems where rate limits could be triggered too quickly?

mike-myshell avatar Oct 21 '23 10:10 mike-myshell