promiscuous 0.100.0 → 0.100.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/promiscuous/config.rb +1 -1
- data/lib/promiscuous/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f03baccd94bfc3544565c1d22949b5c9a27837ff
|
4
|
+
data.tar.gz: 37b69e7efed0d7b8e0d89e6dfd7f78610ec2bef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c41185a3ba9ec6ef9e9df5bfbe688b050085ee3aa723a89a5c6f549797d2ff2d7cf2142f23ac631ef483f4d7e80a4013bf8e6534b22d04e44f14360eb6decb5
|
7
|
+
data.tar.gz: 7d1aba8027e95a1e6760e2cf9020b349d2d5fb99c42e54064f82abc689803d79d446b46421cfc95c44eb43a1b239ad2c6a54f3458473043518feee0e0ff5ebcf
|
data/lib/promiscuous/config.rb
CHANGED
@@ -60,7 +60,7 @@ module Promiscuous::Config
|
|
60
60
|
self.version_field ||= '_v'
|
61
61
|
self.recovery_on_boot = true if self.recovery_on_boot.nil?
|
62
62
|
self.on_stats ||= proc { |rate, latency| }
|
63
|
-
self.max_retries ||= 10
|
63
|
+
self.max_retries ||= defined?(Rails) ? Rails.env.production? ? 10 : 0 : 10
|
64
64
|
self.generation ||= 1
|
65
65
|
self.destroy_timeout ||= 1.hour
|
66
66
|
self.destroy_check_interval ||= 10.minutes
|
data/lib/promiscuous/version.rb
CHANGED