diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-05-09 10:41:28 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-05-09 10:41:28 +0200 |
commit | 87c3a0d0b3dfd7e3ea818156de38497e6257e78f (patch) | |
tree | c816a9156bc7f8ca56fa041ba6dbfcc10e0ca97e /lib | |
parent | 5233e9910677c921ab93e0997964144b1df95a63 (diff) | |
parent | 9b18914c3572be5b661e4d8e31578fae4ee347be (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/redis_config.rb | 12 | ||||
-rw-r--r-- | lib/mastodon/version.rb | 4 |
2 files changed, 12 insertions, 4 deletions
diff --git a/lib/mastodon/redis_config.rb b/lib/mastodon/redis_config.rb index d341a8484..5bfd26e34 100644 --- a/lib/mastodon/redis_config.rb +++ b/lib/mastodon/redis_config.rb @@ -22,9 +22,11 @@ end setup_redis_env_url setup_redis_env_url(:cache, false) +setup_redis_env_url(:sidekiq, false) -namespace = ENV.fetch('REDIS_NAMESPACE', nil) -cache_namespace = namespace ? namespace + '_cache' : 'cache' +namespace = ENV.fetch('REDIS_NAMESPACE', nil) +cache_namespace = namespace ? namespace + '_cache' : 'cache' +sidekiq_namespace = namespace REDIS_CACHE_PARAMS = { driver: :hiredis, @@ -32,3 +34,9 @@ REDIS_CACHE_PARAMS = { expires_in: 10.minutes, namespace: cache_namespace, }.freeze + +REDIS_SIDEKIQ_PARAMS = { + driver: :hiredis, + url: ENV['SIDEKIQ_REDIS_URL'], + namespace: sidekiq_namespace, +}.freeze diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb index 12581f3e1..f92a350ca 100644 --- a/lib/mastodon/version.rb +++ b/lib/mastodon/version.rb @@ -9,7 +9,7 @@ module Mastodon end def minor - 3 + 4 end def patch @@ -17,7 +17,7 @@ module Mastodon end def flags - '' + 'rc1' end def suffix |