-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat: rest hash and handler sweeping #7255
feat: rest hash and handler sweeping #7255
Conversation
Co-authored-by: SpaceEEC <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to do sweeping of handlers in djs but since we're sweeping hashes here I guess we should sweep handlers too. I do think that would be within the scope of this PR (most of the groundwork was layed long ago), but if you don't think so, I'll make that PR once this is merged
Co-authored-by: Antonio Román <[email protected]>
16e0705
to
123c09c
Compare
Co-authored-by: Vlad Frangu <[email protected]>
Please describe the changes this PR makes and why it should be merged:
See discordjs/discord.js-modules#40
Sweeps hashes based on the lifetime of a given hash. Lifetimes are based on the last time a particular hash was used relative to the current data/time. In addition this sweeps inactive handlers.
This introduces new options for
REST
:hashSweepInterval
: The delay before each hash sweep interval.hashLifetime
: The maximum amount of time a hash can exist before being swept.handlerSweepInterval
: The delay before each handler sweep intervalStatus and versioning classification: