File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222from solvedac_community .HTTPClients .abstract_http_client import AbstractHTTPClient
2323from solvedac_community .HTTPClients .httpclient import MISSING , ResponseData , Route
2424
25-
2625__all__ = ["AiohttpHTTPClient" ]
2726
2827
2928class 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 ):
You can’t perform that action at this time.
0 commit comments