lib/loquor/configuration.rb in loquor-1.11.0 vs lib/loquor/configuration.rb in loquor-1.12.0
- old
+ new
@@ -5,19 +5,22 @@
end
class Configuration
SETTINGS = [
- :logger, :access_id, :secret_key, :endpoint, :substitute_values, :retry_404s
+ :logger, :access_id, :secret_key, :endpoint, :substitute_values, :retry_404s, :retry_503s, :max_retries, :retry_backoff
]
attr_writer *SETTINGS
attr_accessor :cache
def initialize
self.logger = Filum.logger
self.substitute_values = {}
self.retry_404s = false
+ self.retry_503s = true
+ self.max_retries = 5
+ self.retry_backoff = 2
end
SETTINGS.each do |setting|
define_method setting do
get_or_raise(setting)