Skip to content

Commit 017160a

Browse files
author
Aaron Patterson and Terence Lee
committed
rename @pool to @SiZe for clarity
1 parent 766a552 commit 017160a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/resque/threaded_pool.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module Resque
22
class ThreadedPool
33

4-
def initialize(queue, pool)
4+
def initialize(queue, size)
55
@queue = queue
6-
@pool = pool
6+
@size = size
77
@threads = []
88
@consumers = []
99
end
1010

1111

1212
def start
1313
@consumers.clear
14-
@threads = @pool.times.map {
14+
@threads = @size.times.map {
1515
c = Consumer.new(@queue)
1616
@consumers << c
1717
Thread.new { c.consume }

0 commit comments

Comments
 (0)