From 2c46a764f700e6439afa11c00db827ddf21a9e89 Mon Sep 17 00:00:00 2001 From: Adam Hellberg Date: Tue, 19 Mar 2024 17:59:39 +0100 Subject: [PATCH] Remove empty LoggingContext (#109) As per the comment on parent repo: https://github.com/matrix-org/synapse-s3-storage-provider/issues/56#issuecomment-1103873051 Signed-off-by: Adam Hellberg --- s3_storage_provider.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/s3_storage_provider.py b/s3_storage_provider.py index 3b5534d..8dfd137 100644 --- a/s3_storage_provider.py +++ b/s3_storage_provider.py @@ -334,8 +334,7 @@ def stopProducing(self): self.stop_event.set() self.wakeup_event.set() if not self.deferred.called: - with LoggingContext(): - self.deferred.errback(Exception("Consumer ask to stop producing")) + self.deferred.errback(Exception("Consumer ask to stop producing")) def _write(self, chunk): """Writes the chunk of data to consumer. Called by _S3DownloadThread.