From 8b41d78978c8b4e12c6c3b8eace037e547829c68 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Fri, 25 Mar 2022 01:01:09 -0600 Subject: [PATCH] Remove re-assignment of self.clock in UploadResource Signed-off-by: Sumner Evans --- synapse/rest/media/upload_resource.py | 1 - 1 file changed, 1 deletion(-) diff --git a/synapse/rest/media/upload_resource.py b/synapse/rest/media/upload_resource.py index 043e8d6077ea..ceb86e06c66b 100644 --- a/synapse/rest/media/upload_resource.py +++ b/synapse/rest/media/upload_resource.py @@ -41,7 +41,6 @@ def __init__(self, hs: "HomeServer", media_repo: "MediaRepository"): self.clock = hs.get_clock() self.auth = hs.get_auth() self.max_upload_size = hs.config.media.max_upload_size - self.clock = hs.get_clock() async def _async_render_OPTIONS(self, request: SynapseRequest) -> None: respond_with_json(request, 200, {}, send_cors=True)