From e6f38ba9e607d0ed9c07478c5fd0498ecc1d0703 Mon Sep 17 00:00:00 2001 From: dblock Date: Thu, 12 Oct 2023 16:26:45 -0400 Subject: [PATCH] Undo change in async for backwards compatibility. Signed-off-by: dblock --- opensearchpy/_async/http_aiohttp.py | 4 ++-- opensearchpy/connection/http_async.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opensearchpy/_async/http_aiohttp.py b/opensearchpy/_async/http_aiohttp.py index 408f2b7c..cc426164 100644 --- a/opensearchpy/_async/http_aiohttp.py +++ b/opensearchpy/_async/http_aiohttp.py @@ -85,7 +85,7 @@ def __init__( client_key=None, ssl_version=None, ssl_assert_fingerprint=None, - pool_maxsize=None, + maxsize=10, headers=None, ssl_context=None, http_compress=None, @@ -217,7 +217,7 @@ def __init__( self.session = None # Parameters for creating an aiohttp.ClientSession later. - self._limit = pool_maxsize + self._limit = maxsize self._http_auth = http_auth self._ssl_context = ssl_context self._trust_env = trust_env diff --git a/opensearchpy/connection/http_async.py b/opensearchpy/connection/http_async.py index 5142f9f5..10f5a56a 100644 --- a/opensearchpy/connection/http_async.py +++ b/opensearchpy/connection/http_async.py @@ -43,7 +43,7 @@ def __init__( client_key=None, ssl_version=None, ssl_assert_fingerprint=None, - pool_maxsize=None, + maxsize=10, headers=None, ssl_context=None, http_compress=None, @@ -140,7 +140,7 @@ def __init__( self.session = None # Parameters for creating an aiohttp.ClientSession later. - self._limit = pool_maxsize + self._limit = maxsize self._http_auth = http_auth self._ssl_context = ssl_context