Skip to content

Commit 67ea06b

Browse files
committed
Delete loop parameter in AiohttpHTTPClient constructor
1 parent 3a0e156 commit 67ea06b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

solvedac_community/HTTPClients/aiohttp_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
from solvedac_community.HTTPClients.abstract_http_client import AbstractHTTPClient
2323
from solvedac_community.HTTPClients.httpclient import MISSING, ResponseData, Route
2424

25-
2625
__all__ = ["AiohttpHTTPClient"]
2726

2827

2928
class AiohttpHTTPClient(AbstractHTTPClient):
3029
USER_AGENT: ClassVar[str] = "Mozilla/5.0"
3130

32-
def __init__(self, loop: asyncio.AbstractEventLoop, solvedac_token: Optional[str] = None) -> None:
33-
self.loop: asyncio.AbstractEventLoop = loop
31+
def __init__(self, solvedac_token: Optional[str] = None) -> None:
32+
self.loop: asyncio.AbstractEventLoop = asyncio.get_event_loop()
3433
self.session: aiohttp.ClientSession = MISSING
3534
self.lock: asyncio.Lock = asyncio.Lock()
3635
self.solvedac_token: Union[str, None] = solvedac_token
36+
3737
atexit.register(self.close)
3838

3939
async def __create_session(self):

0 commit comments

Comments
 (0)