Skip to content

Commit

Permalink
consistent_hash parameter in the send method is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
魏豹 committed Sep 3, 2020
1 parent 2075071 commit 63575a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channels_redis/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ async def send(self, channel, message):
# Pick a connection to the right server - consistent for specific
# channels, random for general channels
if "!" in channel:
index = self.consistent_hash(channel)
index = self.consistent_hash(channel_non_local_name)
else:
index = next(self._send_index_generator)
async with self.connection(index) as connection:
Expand Down

0 comments on commit 63575a0

Please sign in to comment.