governor icon indicating copy to clipboard operation
governor copied to clipboard

Storing and re-storing rate-limit state?

Open jcgruenhage opened this issue 2 years ago • 1 comments

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?

jcgruenhage avatar Apr 11 '23 06:04 jcgruenhage

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.

Xevion avatar Nov 07 '23 00:11 Xevion