mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fixed shadowed variable warning
This commit is contained in:
parent
b3622df085
commit
76e4e200c5
1 changed files with 3 additions and 3 deletions
|
@ -44,9 +44,9 @@ module Sidekiq
|
||||||
|
|
||||||
post "/busy" do
|
post "/busy" do
|
||||||
if params['hostname']
|
if params['hostname']
|
||||||
pro = Sidekiq::Process.new('hostname' => params["hostname"], 'pid' => params['pid'])
|
p = Sidekiq::Process.new('hostname' => params["hostname"], 'pid' => params['pid'])
|
||||||
pro.quiet! if params[:quiet]
|
p.quiet! if params[:quiet]
|
||||||
pro.stop! if params[:stop]
|
p.stop! if params[:stop]
|
||||||
else
|
else
|
||||||
Sidekiq::ProcessSet.new.each do |pro|
|
Sidekiq::ProcessSet.new.each do |pro|
|
||||||
pro.quiet! if params[:quiet]
|
pro.quiet! if params[:quiet]
|
||||||
|
|
Loading…
Add table
Reference in a new issue