We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d6f18 commit c23ca41Copy full SHA for c23ca41
3 files changed
Gemfile.lock
@@ -1,7 +1,7 @@
1
PATH
2
remote: .
3
specs:
4
- stealth (2.1.0)
+ stealth (2.1.1)
5
activesupport (~> 7.0)
6
connection_pool (~> 2.4)
7
multi_json (~> 1.12)
VERSION
@@ -1 +1 @@
-2.1.0
+2.1.1
lib/stealth/redis.rb
@@ -8,7 +8,7 @@ class RedisConfig
8
attr_accessor :url, :pool_size, :pool_timeout
9
10
def initialize
11
- @url = Stealth.env.development? ? "redis://localhost:6379/0" : ENV["STEALTH_REDIS_URL"] || ENV["REDIS_URL"]
+ @url = ENV["STEALTH_REDIS_URL"] || ENV["REDIS_URL"] || "redis://localhost:6379/0"
12
@pool_size = Integer(ENV["STEALTH_REDIS_POOL"] || 5)
13
@pool_timeout = Integer(ENV["STEALTH_REDIS_TIMEOUT"] || 5)
14
end
0 commit comments