2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

Remove unused variable.

This commit is contained in:
Guo Xiang Tan 2018-06-15 07:45:51 +08:00
parent 4a4406de8c
commit c34100d1e7

View file

@ -499,9 +499,7 @@ module Discourse
pools = []
ObjectSpace.each_object(ActiveRecord::ConnectionAdapters::ConnectionPool) { |pool| pools << pool }
i = 0
pools.each do |pool|
i += 1
# reap recovers connections that were aborted
# eg a thread died or a dev forgot to check it in
# flush removes idle connections