From c34100d1e72694f41d4f3dffb5b41d182a38a938 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 15 Jun 2018 07:45:51 +0800 Subject: [PATCH] Remove unused variable. --- lib/discourse.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/discourse.rb b/lib/discourse.rb index 381ab5e588a..0822630eead 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -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