From e675bbcc49b04f9799bacb6e7f266573d8a117fc Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 1 Oct 2020 11:51:09 +0100 Subject: [PATCH] Remove redundant `EventCreationHandler._is_worker_app` attribute This was added in 1c347c84bf/#7544 as a temporary optimisation. That was never merged to develop, since it conflicted with #7492. The merge cf92310da forgot to remove it. --- synapse/handlers/message.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 16c367b30b..3a9183e0b0 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -412,10 +412,8 @@ class EventCreationHandler: if self._block_events_without_consent_error: self._consent_uri_builder = ConsentURIBuilder(self.config) - self._is_worker_app = self.config.worker_app is not None - if ( - not self._is_worker_app + not self.config.worker_app and self.config.cleanup_extremities_with_dummy_events ): self.clock.looping_call(