mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-10 15:59:50 +00:00
Change aiohttp object construction to no longer take loop objects
This commit is contained in:
parent
37076a04de
commit
93e1ff5f07
@ -540,12 +540,11 @@ class HTTPClient:
|
||||
async def static_login(self, token: str) -> user.User:
|
||||
# Necessary to get aiohttp to stop complaining about session creation
|
||||
if self.connector is MISSING:
|
||||
self.connector = aiohttp.TCPConnector(loop=self.loop, limit=0)
|
||||
self.connector = aiohttp.TCPConnector(limit=0)
|
||||
|
||||
self.__session = aiohttp.ClientSession(
|
||||
connector=self.connector,
|
||||
ws_response_class=DiscordClientWebSocketResponse,
|
||||
loop=self.loop,
|
||||
trace_configs=None if self.http_trace is None else [self.http_trace],
|
||||
)
|
||||
self._global_over = asyncio.Event()
|
||||
|
Loading…
x
Reference in New Issue
Block a user