From 426caabe553374262c556e801297666039c748b4 Mon Sep 17 00:00:00 2001 From: awaw fumin Date: Wed, 5 Mar 2014 19:04:32 +0800 Subject: [PATCH] update comments from blpop to brpop --- lib/sidekiq/fetch.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sidekiq/fetch.rb b/lib/sidekiq/fetch.rb index fc29da59..6543b8b5 100644 --- a/lib/sidekiq/fetch.rb +++ b/lib/sidekiq/fetch.rb @@ -140,10 +140,10 @@ module Sidekiq end end - # Creating the Redis#blpop command takes into account any - # configured queue weights. By default Redis#blpop returns + # Creating the Redis#brpop command takes into account any + # configured queue weights. By default Redis#brpop returns # data from the first queue that has pending elements. We - # recreate the queue command each time we invoke Redis#blpop + # recreate the queue command each time we invoke Redis#brpop # to honor weights and avoid queue starvation. def queues_cmd queues = @strictly_ordered_queues ? @unique_queues.dup : @queues.shuffle.uniq