mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 10:42:31 +00:00
Merge pull request #3178 from matrix-org/rav/fix_request_timeouts
fix http request timeout code
This commit is contained in:
1 file changed
+1
-1
@@ -25,7 +25,7 @@ class RequestTimedOutError(SynapseError):
|
||||
super(RequestTimedOutError, self).__init__(504, "Timed out")
|
||||
|
||||
|
||||
def cancelled_to_request_timed_out_error(value):
|
||||
def cancelled_to_request_timed_out_error(value, timeout):
|
||||
"""Turns CancelledErrors into RequestTimedOutErrors.
|
||||
|
||||
For use with async.add_timeout_to_deferred
|
||||
|
||||
Reference in new issue
Block a user