Fixed Issue 180 Pass connection pool and seed_connections as two

separate arguments
This commit is contained in:
Steven Moy
2015-01-08 15:43:14 -08:00
parent 0fd051922b
commit 7a674dbb0b
+1 -1
View File
@@ -201,7 +201,7 @@ class Transport(object):
self.last_sniff = time.time()
# go through all current connections as well as the
# 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:
# use small timeout for the sniffing request, should be a fast api call
_, headers, node_info = c.perform_request('GET', '/_nodes/_all/clear',