aboutsummaryrefslogtreecommitdiff
path: root/discord/shard.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2018-06-10 18:37:51 -0400
committerRapptz <[email protected]>2018-06-10 18:37:51 -0400
commit5ae9ea26b176b4368b7887b70e3e0416405b4ace (patch)
tree2101078d6e1327be469c75bda54452bdb34db023 /discord/shard.py
parentFix NameError for typing context manager. (diff)
downloaddiscord.py-5ae9ea26b176b4368b7887b70e3e0416405b4ace.tar.xz
discord.py-5ae9ea26b176b4368b7887b70e3e0416405b4ace.zip
Disable compression for websockets.
Increase of RAM and CPU doesn't give me much benefit I feel.
Diffstat (limited to 'discord/shard.py')
-rw-r--r--discord/shard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/shard.py b/discord/shard.py
index 7a736bfe..8e04b9c5 100644
--- a/discord/shard.py
+++ b/discord/shard.py
@@ -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)