mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Move time_bound_deferred into Clock
This commit is contained in:
parent
0e6b3e4e40
commit
dcf52469e8
3 changed files with 22 additions and 24 deletions
|
@ -22,7 +22,7 @@ from twisted.web._newclient import ResponseDone
|
|||
|
||||
from synapse.http.agent_name import AGENT_NAME
|
||||
from synapse.http.endpoint import matrix_federation_endpoint
|
||||
from synapse.util.async import sleep, time_bound_deferred
|
||||
from synapse.util.async import sleep
|
||||
from synapse.util.logcontext import PreserveLoggingContext
|
||||
|
||||
from syutil.jsonutil import encode_canonical_json
|
||||
|
@ -129,9 +129,8 @@ class MatrixFederationHttpClient(object):
|
|||
producer
|
||||
)
|
||||
|
||||
response = yield time_bound_deferred(
|
||||
response = yield self.clock.time_bound_deferred(
|
||||
request_deferred,
|
||||
clock=self.clock,
|
||||
time_out=60,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue