Fix condition in _publish_and_retry_on_missing_exchange()
The current condition logic in _publish_and_retry_on_missing_exchange() replaces passed `timeout` value with `rpc_response_timeout` config value. This patch fix it. Change-Id: I451cd2b5da78a3d7011466dfb14669aa1dcf1d5c
This commit is contained in:
@@ -1001,7 +1001,7 @@ class Connection(object):
|
|||||||
# TODO(sileht): use @retrying
|
# TODO(sileht): use @retrying
|
||||||
# NOTE(sileht): no need to wait the application expect a response
|
# NOTE(sileht): no need to wait the application expect a response
|
||||||
# before timeout is exshauted
|
# before timeout is exshauted
|
||||||
duration = (timeout if timeout is None
|
duration = (timeout if timeout is not None
|
||||||
else self.conf.rpc_response_timeout)
|
else self.conf.rpc_response_timeout)
|
||||||
|
|
||||||
timer = rpc_common.DecayingTimer(duration=duration)
|
timer = rpc_common.DecayingTimer(duration=duration)
|
||||||
|
|||||||
Reference in New Issue
Block a user