From d62584e9412b66940f7220ba3f2c79a613bdada7 Mon Sep 17 00:00:00 2001 From: Ignacio Peluffo Date: Wed, 25 Sep 2019 13:43:19 +0100 Subject: [PATCH] Remove aiohttp warnings --- elasticsearch_async/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch_async/connection.py b/elasticsearch_async/connection.py index 6d3c912..929e18c 100644 --- a/elasticsearch_async/connection.py +++ b/elasticsearch_async/connection.py @@ -65,12 +65,12 @@ def __init__(self, host='localhost', port=9200, http_auth=None, self.session = aiohttp.ClientSession( auth=http_auth, - conn_timeout=self.timeout, + timeout=self.timeout, connector=aiohttp.TCPConnector( loop=self.loop, verify_ssl=verify_certs, use_dns_cache=use_dns_cache, - ssl_context=ssl_context, + ssl=ssl_context, ), headers=headers )