don't need explicit dep and a pretty neat pick

This commit is contained in:
Mike Perham 2016-01-05 16:26:53 -08:00
parent e529e3428e
commit cd1d7e287b
2 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ Gem::Specification.new do |s|
s.add_dependency 'coffee-rails', '~> 4.1.0'
s.add_dependency 'faye-websocket', '~> 0.10.0'
s.add_dependency 'websocket-driver', '~> 0.6.1'
s.add_dependency 'concurrent-ruby', '~> 1.0.0'
s.add_dependency 'em-hiredis', '~> 0.3.0'
s.add_dependency 'redis', '~> 3.0'

View File

@ -12,7 +12,7 @@ module ActionCable
define_callbacks :work
include ActiveRecordConnectionManagement
def initialize(max_size=5)
def initialize(max_size: 5)
@pool = Concurrent::ThreadPoolExecutor.new(
min_threads: 1,
max_threads: max_size,