Skip to content

Commit

Permalink
Merge ce8d97d into 38c0e04
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre committed Feb 18, 2022
2 parents 38c0e04 + ce8d97d commit af46480
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -76,7 +76,7 @@ Argument | Description | Required? | Type | Default Value|
`disable_metrics` | Disables sending metrics to Unleash server. | N | Boolean | `false` |
`custom_http_headers` | Custom headers to send to Unleash. As of Unleash v4.0.0, the `Authorization` header is required. For example: `{'Authorization': '<API token>'}` | N | Hash | {} |
`timeout` | How long to wait for the connection to be established or wait in reading state (open_timeout/read_timeout) | N | Integer | 30 |
`retry_limit` | How many consecutive failures in connecting to the Unleash server are allowed before giving up. Use `Float::INFINITY` if you would like it to never give up. | N | Numeric | 5 |
`retry_limit` | How many consecutive failures in connecting to the Unleash server are allowed before giving up. The default is to retry indefinitely. | N | Float::INFINITY | 5 |
`backup_file` | Filename to store the last known state from the Unleash server. Best to not change this from the default. | N | String | `Dir.tmpdir + "/unleash-#{app_name}-repo.json` |
`logger` | Specify a custom `Logger` class to handle logs for the Unleash client. | N | Class | `Logger.new(STDOUT)` |
`log_level` | Change the log level for the `Logger` class. Constant from `Logger::Severity`. | N | Constant | `Logger::WARN` |
Expand Down
2 changes: 1 addition & 1 deletion lib/unleash/configuration.rb
Expand Up @@ -95,7 +95,7 @@ def set_defaults
self.refresh_interval = 10
self.metrics_interval = 60
self.timeout = 30
self.retry_limit = 5
self.retry_limit = Float::INFINITY
self.backup_file = nil
self.log_level = Logger::WARN
self.bootstrap_config = nil
Expand Down
2 changes: 1 addition & 1 deletion spec/unleash/configuration_spec.rb
Expand Up @@ -20,7 +20,7 @@
expect(config.refresh_interval).to eq(10)
expect(config.metrics_interval).to eq(60)
expect(config.timeout).to eq(30)
expect(config.retry_limit).to eq(5)
expect(config.retry_limit).to eq(Float::INFINITY)

expect(config.backup_file).to_not be_nil
expect(config.backup_file).to eq(Dir.tmpdir + '/unleash--repo.json')
Expand Down

0 comments on commit af46480

Please sign in to comment.