Skip to content

Commit 3a0e156

Browse files
committed
Delete loop parameter in HttpxHTTPClient constructor
1 parent 39147b3 commit 3a0e156

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

solvedac_community/HTTPClients/httpx_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
class HttpxHTTPClient(AbstractHTTPClient):
2828
USER_AGENT: ClassVar[str] = "Mozilla/5.0"
2929

30-
def __init__(self, loop: asyncio.AbstractEventLoop, solvedac_token: Optional[str] = None) -> None:
31-
self.loop: asyncio.AbstractEventLoop = loop
30+
def __init__(self, solvedac_token: Optional[str] = None) -> None:
31+
self.loop: asyncio.AbstractEventLoop = asyncio.get_event_loop()
3232
self.lock: asyncio.Lock = asyncio.Lock()
3333
self.solvedac_token: Union[str, None] = solvedac_token
3434

0 commit comments

Comments
 (0)