Skip to content

fix: searchDelay is NaN in ratelimit logic#738

Open
ayubun wants to merge 1 commit intovictornpb:masterfrom
ayubun:fix-ratelimiting
Open

fix: searchDelay is NaN in ratelimit logic#738
ayubun wants to merge 1 commit intovictornpb:masterfrom
ayubun:fix-ratelimiting

Conversation

@ayubun
Copy link
Copy Markdown

@ayubun ayubun commented Nov 7, 2025

searchDelay in the ratelimiting logic is being read from the stats object, as opposed to the options object. since this should be referencing this.options.searchDelay, we see NaN bugs when we reach this code:
Screenshot 2025-11-06 at 4 38 30 PM
this is a simple fix to update this.stats.searchDelays to this.options.searchDelay

fixes #733


note: my personal contributions to and usage of this project do not represent discord. opinions are my own

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.

batch delete does not recognize rate limit

1 participant