Fix single Redis connection being used across all threads (#18135)
* Fix single Redis connection being used across all Sidekiq threads * Fix tests
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
#
|
||||
|
||||
class AccountConversation < ApplicationRecord
|
||||
include Redisable
|
||||
|
||||
after_commit :push_to_streaming_api
|
||||
|
||||
belongs_to :account
|
||||
@@ -109,7 +111,7 @@ class AccountConversation < ApplicationRecord
|
||||
end
|
||||
|
||||
def subscribed_to_timeline?
|
||||
Redis.current.exists?("subscribed:#{streaming_channel}")
|
||||
redis.exists?("subscribed:#{streaming_channel}")
|
||||
end
|
||||
|
||||
def streaming_channel
|
||||
|
||||
Reference in New Issue
Block a user