Skip to content

Commit

Permalink
Internal:Fix environment variable for remote configuration polling in…
Browse files Browse the repository at this point in the history
…terval
  • Loading branch information
marcotc committed Jul 13, 2023
1 parent 2c96c31 commit bfa8775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/datadog/core/configuration/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def initialize(*_)

# Tune remote configuration polling interval.
#
# @default `DD_REMOTE_CONFIGURATION_POLL_INTERVAL_SECONDS` environment variable, otherwise `5.0` seconds.
# @default `DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS` environment variable, otherwise `5.0` seconds.
# @return [Float]
option :poll_interval_seconds do |o|
o.default { env_to_float(Core::Remote::Ext::ENV_POLL_INTERVAL_SECONDS, 5.0) }
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/core/remote/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Core
module Remote
module Ext
ENV_ENABLED = 'DD_REMOTE_CONFIGURATION_ENABLED'
ENV_POLL_INTERVAL_SECONDS = 'DD_REMOTE_CONFIGURATION_POLL_INTERVAL_SECONDS'
ENV_POLL_INTERVAL_SECONDS = 'DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS'
end
end
end
Expand Down

0 comments on commit bfa8775

Please sign in to comment.