Disable compression for websockets.

Increase of RAM and CPU doesn't give me much benefit I feel.
This commit is contained in:
Rapptz
2018-06-10 18:37:51 -04:00
parent e51f92e78d
commit 5ae9ea26b1
2 changed files with 3 additions and 3 deletions

View File

@ -210,7 +210,7 @@ class AutoShardedClient(Client):
async def launch_shard(self, gateway, shard_id):
try:
coro = websockets.connect(gateway, loop=self.loop, klass=DiscordWebSocket)
coro = websockets.connect(gateway, loop=self.loop, klass=DiscordWebSocket, compression=None)
ws = await asyncio.wait_for(coro, loop=self.loop, timeout=180.0)
except Exception as e:
log.info('Failed to connect for shard_id: %s. Retrying...', shard_id)