Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions s3_storage_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from twisted.python.threadpool import ThreadPool

from synapse.logging.context import make_deferred_yieldable
from synapse.module_api import ModuleApi
from synapse.module_api import ModuleApi, run_in_background
from synapse.rest.media.v1._base import Responder
from synapse.rest.media.v1.storage_provider import StorageProvider

Expand Down Expand Up @@ -143,7 +143,7 @@ async def fetch(self, path, file_info):
# We do, however, need to wrap in `run_in_background` to ensure that the
# coroutine returned by `defer_to_threadpool` is used, and therefore
# actually run.
self._module_api.run_in_background(
run_in_background(
self._module_api.defer_to_threadpool(
self._s3_pool,
s3_download_task,
Expand Down