diff options
Diffstat (limited to 'synapse/metrics')
-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 |