Skip to content

Commit

Permalink
Fixed unused version in shard.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekokatt committed Sep 8, 2020
1 parent eeee4b3 commit c907544
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hikari/impl/shard.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,12 @@ def __init__(
shard_count: int = 1,
token: str,
url: str,
version: int = 6,
) -> None:

if data_format != shard.GatewayDataFormat.JSON:
raise NotImplementedError(f"Unsupported gateway data format: {data_format}")

query = {"v": version, "encoding": data_format}
query = {"v": _VERSION, "encoding": data_format}

if compression is not None:
if compression == shard.GatewayCompression.PAYLOAD_ZLIB_STREAM:
Expand Down

0 comments on commit c907544

Please sign in to comment.