Skip to content

Commit 057bacb

Browse files
committed
Add polling managment config to flagsmith.rb
1 parent 542aea2 commit 057bacb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/flagsmith.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Client # rubocop:disable Metrics/ClassLength
4545
#
4646
# :environment_key, :api_url, :custom_headers, :request_timeout_seconds, :enable_local_evaluation,
4747
# :environment_refresh_interval_seconds, :retries, :enable_analytics, :default_flag_handler,
48-
# :offline_mode, :offline_handler
48+
# :offline_mode, :offline_handler, :polling_manager_failure_limit
4949
#
5050
# You can see full description in the Flagsmith::Config
5151

@@ -106,7 +106,7 @@ def environment_data_polling_manager
106106
update_environment
107107

108108
@environment_data_polling_manager ||= Flagsmith::EnvironmentDataPollingManager.new(
109-
self, environment_refresh_interval_seconds
109+
self, environment_refresh_interval_seconds, @config.polling_manager_failure_limit
110110
).tap(&:start)
111111
end
112112

0 commit comments

Comments
 (0)