diff options
author | Eric Eastwood <erice@element.io> | 2022-08-30 06:08:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 12:08:29 +0100 |
commit | 1eea73b4133da3afc2361592f7b2fa4a4125249d (patch) | |
tree | 264af720ab31c4312ed178fd84575911419744a4 /synapse/server.py | |
parent | Remove manually-added changelog (diff) | |
download | synapse-1eea73b4133da3afc2361592f7b2fa4a4125249d.tar.xz |
Fix rate limit metrics registering twice and misreporting (#13649)
* Fix rate limit metrics registering twice and misreporting Fix https://github.com/matrix-org/synapse/issues/13641 * Fix lints * Add changelog * Document `metrics_name=None`.
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/server.py b/synapse/server.py index 181984a1a4..c2e55bf0b1 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -756,7 +756,9 @@ class HomeServer(metaclass=abc.ABCMeta): @cache_in_self def get_federation_ratelimiter(self) -> FederationRateLimiter: return FederationRateLimiter( - self.get_clock(), config=self.config.ratelimiting.rc_federation + self.get_clock(), + config=self.config.ratelimiting.rc_federation, + metrics_name="federation_servlets", ) @cache_in_self |