Fix typo where we ended up with multiple `WorkerLocksHandler` (#16220)

I don't think has caused any actual issues.

Introduced in #15891
pull/16236/head
Erik Johnston 2023-09-01 13:52:57 +01:00 committed by GitHub
parent 6525fd65ee
commit 93f2fdd8d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
changelog.d/16220.misc Normal file
View File

@ -0,0 +1 @@
Fix typo where we ended up with multiple `WorkerLocksHandler`.

View File

@ -913,6 +913,7 @@ class HomeServer(metaclass=abc.ABCMeta):
"""Usage metrics shared between phone home stats and the prometheus exporter.""" """Usage metrics shared between phone home stats and the prometheus exporter."""
return CommonUsageMetricsManager(self) return CommonUsageMetricsManager(self)
@cache_in_self
def get_worker_locks_handler(self) -> WorkerLocksHandler: def get_worker_locks_handler(self) -> WorkerLocksHandler:
return WorkerLocksHandler(self) return WorkerLocksHandler(self)