Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bin/vmpooler
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ if torun.include? 'api'
api = Thread.new do
thr = Vmpooler::API.new
redis = Vmpooler.new_redis(redis_host, redis_port, redis_password)
checkoutlock = Mutex.new
thr.helpers.configure(config, redis, metrics, checkoutlock)
thr.helpers.configure(config, redis, metrics)
thr.helpers.execute!
end
torun_threads << api
Expand Down
4 changes: 2 additions & 2 deletions lib/vmpooler/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ def initialize
use Vmpooler::API::Reroute
use Vmpooler::API::V1

def configure(config, redis, metrics, checkoutlock)
def configure(config, redis, metrics)
self.settings.set :config, config
self.settings.set :redis, redis
self.settings.set :metrics, metrics
self.settings.set :checkoutlock, checkoutlock
self.settings.set :checkoutlock, Mutex.new
end

def execute!
Expand Down