Skip to content
This repository has been archived by the owner on Mar 14, 2018. It is now read-only.

Commit

Permalink
allow jobs without mutex args
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Dec 13, 2012
1 parent b361790 commit 157e090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bundler_api/update/job.rb
Expand Up @@ -6,7 +6,7 @@ class BundlerApi::Job
attr_reader :payload
@@gem_cache = {}

def initialize(db, payload, mutex, gem_count = nil)
def initialize(db, payload, mutex = Mutex.new, gem_count = nil)
@db = db
@payload = payload
@mutex = mutex
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler_api/update/yank_job.rb
Expand Up @@ -2,7 +2,7 @@
require_relative '../gem_helper'

class BundlerApi::YankJob
def initialize(gem_cache, payload, mutex)
def initialize(gem_cache, payload, mutex = Mutex.new)
@gem_cache = gem_cache
@payload = payload
@mutex = mutex
Expand Down

0 comments on commit 157e090

Please sign in to comment.