Skip to content

Commit 63575a0

Browse files
author
魏豹
committed
consistent_hash parameter in the send method is incorrect
1 parent 2075071 commit 63575a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

channels_redis/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ async def send(self, channel, message):
297297
# Pick a connection to the right server - consistent for specific
298298
# channels, random for general channels
299299
if "!" in channel:
300-
index = self.consistent_hash(channel)
300+
index = self.consistent_hash(channel_non_local_name)
301301
else:
302302
index = next(self._send_index_generator)
303303
async with self.connection(index) as connection:

0 commit comments

Comments
 (0)