From 426caabe553374262c556e801297666039c748b4 Mon Sep 17 00:00:00 2001 From: awaw fumin Date: Wed, 5 Mar 2014 19:04:32 +0800 Subject: [PATCH 1/2] 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 From ef0abcee7c594501e51f5fb7ea4c0c66be13fc66 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 6 Mar 2014 21:53:16 -0800 Subject: [PATCH 2/2] =?UTF-8?q?Add=20new=20=F0=9F=92=A3=20alias=20for=20#c?= =?UTF-8?q?lear=20in=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Changes.md | 1 + lib/sidekiq/api.rb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Changes.md b/Changes.md index 719cf697..ef012425 100644 --- a/Changes.md +++ b/Changes.md @@ -21,6 +21,7 @@ Please see [Upgrading.md](Upgrading.md) for more comprehensive upgrade notes. version to pick up Sidekiq support. - Remove deprecated Sidekiq::Client.registered\_\* APIs - Remove deprecated support for the old Sidekiq::Worker#retries\_exhausted method. +- Add new 💣 alias for #clear in API. 2.17.7 ----------- diff --git a/lib/sidekiq/api.rb b/lib/sidekiq/api.rb index f5bb9ce3..b1ff8dd5 100644 --- a/lib/sidekiq/api.rb +++ b/lib/sidekiq/api.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 require 'sidekiq' module Sidekiq @@ -155,6 +156,7 @@ module Sidekiq end end end + alias_method :💣, :clear end ## @@ -359,6 +361,7 @@ module Sidekiq conn.del(name) end end + alias_method :💣, :clear end ##