mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove unused variable.
This commit is contained in:
parent
4a4406de8c
commit
c34100d1e7
@ -499,9 +499,7 @@ module Discourse
|
|||||||
pools = []
|
pools = []
|
||||||
ObjectSpace.each_object(ActiveRecord::ConnectionAdapters::ConnectionPool) { |pool| pools << pool }
|
ObjectSpace.each_object(ActiveRecord::ConnectionAdapters::ConnectionPool) { |pool| pools << pool }
|
||||||
|
|
||||||
i = 0
|
|
||||||
pools.each do |pool|
|
pools.each do |pool|
|
||||||
i += 1
|
|
||||||
# reap recovers connections that were aborted
|
# reap recovers connections that were aborted
|
||||||
# eg a thread died or a dev forgot to check it in
|
# eg a thread died or a dev forgot to check it in
|
||||||
# flush removes idle connections
|
# flush removes idle connections
|
||||||
|
Loading…
Reference in New Issue
Block a user