From 05beaa7f45b3dfd9dead38cf4716481d58beab0b Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 19 May 2020 10:26:23 +0800 Subject: [PATCH] DEV: Remove override of `flushdb` in `DiscourseRedis`. --- lib/discourse_redis.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/discourse_redis.rb b/lib/discourse_redis.rb index ff946cacfb5..6b630b7b34d 100644 --- a/lib/discourse_redis.rb +++ b/lib/discourse_redis.rb @@ -266,12 +266,6 @@ class DiscourseRedis end end - def flushdb - DiscourseRedis.ignore_readonly do - keys.each { |k| del(k) } - end - end - def reconnect @redis._client.reconnect end