mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove not used variables from connection poll test
These variables were issuing some "not used" warnings.
This commit is contained in:
parent
d5d9a281aa
commit
03886d8173
1 changed files with 2 additions and 2 deletions
|
@ -230,7 +230,7 @@ module ActiveRecord
|
|||
threads = expected.map do |i|
|
||||
t = Thread.new {
|
||||
begin
|
||||
conn = @pool.checkout # never checked back in
|
||||
@pool.checkout # never checked back in
|
||||
mutex.synchronize { order << i }
|
||||
rescue => e
|
||||
mutex.synchronize { errors << e }
|
||||
|
@ -273,7 +273,7 @@ module ActiveRecord
|
|||
make_thread = proc do |i|
|
||||
t = Thread.new {
|
||||
begin
|
||||
conn = @pool.checkout # never checked back in
|
||||
@pool.checkout # never checked back in
|
||||
mutex.synchronize { successes << i }
|
||||
rescue => e
|
||||
mutex.synchronize { errors << e }
|
||||
|
|
Loading…
Reference in a new issue