mirror of
https://github.com/deanpcmad/sidekiq-limit_fetch.git
synced 2022-11-09 13:54:36 -05:00
Fix bug
This commit is contained in:
parent
2ba307a539
commit
d6eb9bf28f
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
require 'sidekiq'
|
||||
require 'sidekiq/fetch'
|
||||
|
||||
class Sidekiq::LimitFetch
|
||||
require_relative 'limit_fetch/semaphore'
|
||||
|
@ -23,7 +24,7 @@ class Sidekiq::LimitFetch
|
|||
end
|
||||
|
||||
if message
|
||||
queue = queues.find {|it| it.name == queue_name }
|
||||
queue = queues.find {|it| it.full_name == queue_name }
|
||||
queues.delete queue
|
||||
|
||||
UnitOfWork.new queue, message
|
||||
|
|
Loading…
Add table
Reference in a new issue