summary refs log tree commit diff
path: root/synapse/http/__init__.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-04-27 12:52:30 +0100
committerRichard van der Hoff <richard@matrix.org>2018-04-27 12:52:30 +0100
commit9d2c1b8429996cb9766ac636034485e2a1d685cc (patch)
tree39e35ad98c742fdfddc208293388bb4c936af7ab /synapse/http/__init__.py
parentUse deferred.addTimeout instead of time_bound_deferred (diff)
downloadsynapse-9d2c1b8429996cb9766ac636034485e2a1d685cc.tar.xz
Backport deferred.addTimeout
Twisted 16.0 doesn't have addTimeout, so let's backport it.
Diffstat (limited to 'synapse/http/__init__.py')
-rw-r--r--synapse/http/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/__init__.py b/synapse/http/__init__.py
index 20e568bc43..0d47ccdb59 100644
--- a/synapse/http/__init__.py
+++ b/synapse/http/__init__.py
@@ -28,7 +28,7 @@ class RequestTimedOutError(SynapseError):
 def cancelled_to_request_timed_out_error(value):
     """Turns CancelledErrors into RequestTimedOutErrors.
 
-    For use with deferred.addTimeout()
+    For use with async.add_timeout_to_deferred
     """
     if isinstance(value, failure.Failure):
         value.trap(CancelledError)