diff options
author | Erik Johnston <erik@matrix.org> | 2021-11-08 14:33:58 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-11-08 14:33:58 +0000 |
commit | 61e28c41cdf8b2e2b75ae950ee63b6ea223ba16c (patch) | |
tree | 68a34080ae5e79aa506ed8194d6b3af05dc5ffc7 | |
parent | install timers (diff) | |
download | synapse-61e28c41cdf8b2e2b75ae950ee63b6ea223ba16c.tar.xz |
Fixup
-rw-r--r-- | synapse/metrics/__init__.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py index d7475ddf12..98db75192e 100644 --- a/synapse/metrics/__init__.py +++ b/synapse/metrics/__init__.py @@ -586,9 +586,7 @@ _last_gc = [0.0, 0.0, 0.0] def callFromThreadTimer(func): @functools.wraps(func) - def callFromThread( - self, f: Callable[..., Any], *args: object, **kwargs: object - ) -> None: + def callFromThread(f: Callable[..., Any], *args: object, **kwargs: object) -> None: @functools.wraps(f) def g(*args, **kwargs): start = time.time() @@ -604,7 +602,7 @@ def callFromThreadTimer(func): return r - func(f, args, kwargs) + func(g, args, kwargs) return callFromThread |