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)