Remove uneeded math for simplicity's sake

This commit is contained in:
Rafa de la Torre 2016-12-28 14:44:48 +01:00
parent bdf9627586
commit 9700ae966c

View File

@ -55,8 +55,7 @@ class QPSService:
def retry(self, first_request_time, retry_count):
elapsed = datetime.now() - first_request_time
elapsed_milliseconds = (elapsed.total_seconds() * 1000.0)
if elapsed_milliseconds > (self._retry_timeout * 1000.0):
if elapsed.total_seconds() > self._retry_timeout:
raise TimeoutException()
# inverse qps * (1.5 ^ i) is an increased sleep time of 1.5x per