From 4728d0b1d7fce8cab60c3242e064f8b9265b1c64 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Wed, 15 Apr 2015 13:58:22 -0500 Subject: Use Server#threaded_redis instead of creating a new connection --- lib/action_cable/remote_connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/action_cable/remote_connection.rb b/lib/action_cable/remote_connection.rb index 9c4cd039c5..912fb6eb57 100644 --- a/lib/action_cable/remote_connection.rb +++ b/lib/action_cable/remote_connection.rb @@ -19,7 +19,7 @@ module ActionCable end def redis - @redis ||= Redis.new(@server.redis_config) + @server.threaded_redis end private -- cgit v1.2.3