synapse-product/tests/rest
Andrew Morgan f4e6495b5d
Performance improvements and refactor of Ratelimiter (#7595)
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.
2020-06-05 10:47:20 +01:00
..
admin Email notifications for new users when creating via the Admin API. (#7267) 2020-06-01 15:34:33 +01:00
client Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
key Remove spurious "name" parameter to default_config 2020-03-24 18:33:49 +00:00
media Allow specifying the value of Accept-Language header for URL previews (#7265) 2020-04-15 13:35:29 +01:00
__init__.py copyrights 2016-01-07 04:26:29 +00:00
test_well_known.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00