@@ -243,11 +243,7 @@ def __init__(self, configuration):
243243 proxy = None
244244 if configuration .proxy :
245245 proxy = aiosonic .Proxy (configuration .proxy , configuration .proxy_headers )
246- pool_configs = {
247- ":default" : aiosonic .PoolConfig (
248- max_conn_idle_ms = DEFAULT_IDLE_CONN_MS
249- )
250- }
246+ pool_configs = {":default" : aiosonic .PoolConfig (max_conn_idle_ms = DEFAULT_IDLE_CONN_MS )}
251247 connector = aiosonic .TCPConnector (pool_configs = pool_configs )
252248 self ._client = aiosonic .HTTPClient (connector = connector , proxy = proxy , verify_ssl = configuration .verify_ssl )
253249 self ._configuration = configuration
@@ -300,6 +296,7 @@ async def request(
300296 """
301297 assert not post_params , "not supported for now"
302298 from aiosonic .timeout import Timeouts # type: ignore
299+
303300 timeout = Timeouts (request_timeout = DEFAULT_TIMEOUT )
304301 if request_timeout is not None :
305302 if isinstance (request_timeout , (int , float )):
@@ -326,7 +323,7 @@ async def request(
326323 counter = 0
327324 while True :
328325 response = await self ._client .request (
329- url , method , headers , query_params , request_body , timeouts = timeout
326+ url , method , headers , query_params , request_body , timeouts = request_timeout
330327 )
331328 retry = self ._retry (method , response , counter )
332329 if not retry :
0 commit comments