From 36b6dd279afffdf3c89dbec9c949bfe1be51ac9d Mon Sep 17 00:00:00 2001 From: fakz9 Date: Fri, 5 Jul 2024 09:46:08 +0300 Subject: [PATCH] v1.0 --- marketplaces/base.py | 1 - test.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/marketplaces/base.py b/marketplaces/base.py index 1d73d77..5e501cd 100644 --- a/marketplaces/base.py +++ b/marketplaces/base.py @@ -28,7 +28,6 @@ class BaseMarketplaceApi(ABC): async def _method(self, http_method: Literal['POST', 'GET', 'PATCH', 'PUT', 'DELETE'], method: str, data: dict) -> ClientResponse: - return async with aiohttp.ClientSession() as session: return await session.request(http_method, f'{self.api_url}{method}', diff --git a/test.py b/test.py index 27aed15..b8017b6 100644 --- a/test.py +++ b/test.py @@ -62,9 +62,9 @@ async def test(): start = time.time() await asyncio.gather(*[ test1(), - test2(), - test3(), - test4(), + # test2(), + # test3(), + # test4(), # test5(), # test6(), ])