From 152442fb5ae93b0ae1e58abb6bc3772631bce046 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 949326d85dac..066d2e534f18 100644 --- a/synapse/rest/media/upload_resource.py +++ b/synapse/rest/media/upload_resource.py @@ -42,7 +42,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 on_POST(self, request: SynapseRequest) -> None: requester = await self.auth.get_user_by_req(request)