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

Storing and re-storing rate-limit state? #179

Open
jcgruenhage opened this issue Apr 11, 2023 · 1 comment
Open

Storing and re-storing rate-limit state? #179

jcgruenhage opened this issue Apr 11, 2023 · 1 comment

Comments

@jcgruenhage
Copy link

jcgruenhage commented Apr 11, 2023

I've got a usecase for which I need to store the state of the rate limit on disk when quitting the program, and restoring it when starting it again. What I'm currently considering is deriving Serialize and Deserialize on a bunch of the types in governor, and hiding that behind a serde feature flag. Do you think that makes sense to include here?

@Xevion
Copy link

Xevion commented Nov 7, 2023

If you could show some of the code, that'd help me replicate it. Also, if maintainers could look into making this a built-in feature, I'm sure others would enjoy it.

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