0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 07:13:49 +01:00

Respect long_retries param and default to off

This commit is contained in:
Erik Johnston 2016-12-29 00:58:34 +00:00
parent 68030fd37b
commit b4bc6fef5b

View file

@ -300,7 +300,7 @@ class MatrixFederationHttpClient(object):
defer.returnValue(json.loads(body)) defer.returnValue(json.loads(body))
@defer.inlineCallbacks @defer.inlineCallbacks
def post_json(self, destination, path, data={}, long_retries=True, def post_json(self, destination, path, data={}, long_retries=False,
timeout=None): timeout=None):
""" Sends the specifed json data using POST """ Sends the specifed json data using POST
@ -333,7 +333,7 @@ class MatrixFederationHttpClient(object):
path.encode("ascii"), path.encode("ascii"),
body_callback=body_callback, body_callback=body_callback,
headers_dict={"Content-Type": ["application/json"]}, headers_dict={"Content-Type": ["application/json"]},
long_retries=True, long_retries=long_retries,
timeout=timeout, timeout=timeout,
) )