mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-08 00:21:56 +00:00
![Andrew Morgan](/assets/img/avatar_default.png)
While working on https://github.com/matrix-org/synapse/issues/5665 I found myself digging into the `Ratelimiter` class and seeing that it was both: * Rather undocumented, and * causing a *lot* of config checks This PR attempts to refactor and comment the `Ratelimiter` class, as well as encourage config file accesses to only be done at instantiation. Best to be reviewed commit-by-commit.
2 lines
79 B
Plaintext
2 lines
79 B
Plaintext
Refactor `Ratelimiter` to limit the amount of expensive config value accesses.
|