Skip to content

Commit c159082

Browse files
committed
Remove usage of named arguments
1 parent c66fd9f commit c159082

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/concurrent/executor/ruby_thread_pool_executor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def ns_add_busy_worker
226226
return if @pool.size >= @max_length
227227

228228
@workers_counter += 1
229-
@pool << (worker = Worker.new(self, id: @workers_counter))
229+
@pool << (worker = Worker.new(self, @workers_counter))
230230
@largest_length = @pool.length if @pool.length > @largest_length
231231
worker
232232
end
@@ -295,7 +295,7 @@ def ns_reset_if_forked
295295
class Worker
296296
include Concern::Logging
297297

298-
def initialize(pool, id: nil)
298+
def initialize(pool, id)
299299
# instance variables accessed only under pool's lock so no need to sync here again
300300
@queue = Queue.new
301301
@pool = pool

0 commit comments

Comments
 (0)