Skip to content

Commit 4b88e12

Browse files
committed
Do not sleep during the retry loop
1 parent a37a9f3 commit 4b88e12

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

elasticsearch/transport.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import time
21
from itertools import chain
32

43
from .connection import Urllib3HttpConnection
@@ -339,10 +338,6 @@ def perform_request(self, method, url, headers=None, params=None, body=None):
339338
connection = self.get_connection()
340339

341340
try:
342-
# add a delay before attempting the next retry
343-
# 0, 1, 3, 7, etc...
344-
delay = 2 ** attempt - 1
345-
time.sleep(delay)
346341
status, headers_response, data = connection.perform_request(
347342
method,
348343
url,

0 commit comments

Comments
 (0)