Fixed Issue 180 Pass connection pool and seed_connections as two
separate arguments
This commit is contained in:
@@ -201,7 +201,7 @@ class Transport(object):
|
|||||||
self.last_sniff = time.time()
|
self.last_sniff = time.time()
|
||||||
# go through all current connections as well as the
|
# go through all current connections as well as the
|
||||||
# seed_connections for good measure
|
# seed_connections for good measure
|
||||||
for c in chain(self.connection_pool.connections + self.seed_connections):
|
for c in chain(self.connection_pool.connections, self.seed_connections):
|
||||||
try:
|
try:
|
||||||
# use small timeout for the sniffing request, should be a fast api call
|
# use small timeout for the sniffing request, should be a fast api call
|
||||||
_, headers, node_info = c.perform_request('GET', '/_nodes/_all/clear',
|
_, headers, node_info = c.perform_request('GET', '/_nodes/_all/clear',
|
||||||
|
|||||||
Reference in New Issue
Block a user