mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-23 10:43:19 +00:00
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:
parent
72cf00f845
commit
6ec529fa5f
44 changed files with 243 additions and 124 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
class Settings::ExportsController < Settings::BaseController
|
||||
include Authorization
|
||||
include Redisable
|
||||
|
||||
skip_before_action :require_functional!
|
||||
|
||||
|
|
@ -28,6 +29,6 @@ class Settings::ExportsController < Settings::BaseController
|
|||
end
|
||||
|
||||
def lock_options
|
||||
{ redis: Redis.current, key: "backup:#{current_user.id}" }
|
||||
{ redis: redis, key: "backup:#{current_user.id}" }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue