Skip to content

Commit

Permalink
private func
Browse files Browse the repository at this point in the history
  • Loading branch information
zhousheng06 committed Dec 20, 2024
1 parent 1bd736d commit fcc306a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kombu/transport/rediscluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def _register(self, channel, client, conn, type):
def _unregister(self, channel, client, conn, type):
self.poller.unregister(self._chan_to_sock[(channel, client, conn, type)])

def get_conns_for_channel(self, channel):
def _get_conns_for_channel(self, channel):
conns = set()
for queue in channel.active_queues:
if (channel, queue) not in self._chan_active_queues_to_conn:
Expand All @@ -289,7 +289,7 @@ def get_conns_for_channel(self, channel):
return conns

def _register_BRPOP(self, channel):
conns = self.get_conns_for_channel(channel)
conns = self._get_conns_for_channel(channel)

for conn in conns:
ident = (channel, channel.client, conn, 'BRPOP')
Expand Down

0 comments on commit fcc306a

Please sign in to comment.