From e44e83a857b4ac89603403f2d790244cab3c41b6 Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Sat, 16 Jan 2021 14:46:48 -0500 Subject: [PATCH] Redis fixes --- lib/gabsocial/feeds_cli.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/gabsocial/feeds_cli.rb b/lib/gabsocial/feeds_cli.rb index 9f668486..036adfdc 100644 --- a/lib/gabsocial/feeds_cli.rb +++ b/lib/gabsocial/feeds_cli.rb @@ -78,11 +78,9 @@ module GabSocial desc 'clear', 'Remove all home and list feeds from Redis' def clear - keys = Redis.current.with do |conn| - conn.keys('feed:*') - end - Redis.current.with do |conn| + keys = conn.keys('feed:*') + conn.pipelined do keys.each { |key| conn.del(key) } end