File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
client-sdk/src/data_sources
common/include/launchdarkly/config/shared Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,11 @@ PollingDataSource::PollingDataSource(
90
90
data_source_config.method );
91
91
if (polling_interval_ < polling_config.min_polling_interval ) {
92
92
LD_LOG (logger_, LogLevel::kWarn )
93
- << " Polling interval specified under minimum, defaulting to 30 "
94
- " second polling interval" ;
93
+ << " Polling interval too frequent, defaulting to "
94
+ << std::chrono::duration_cast<std::chrono::seconds>(
95
+ polling_config.min_polling_interval )
96
+ .count ()
97
+ << " seconds" ;
95
98
96
99
polling_interval_ = polling_config.min_polling_interval ;
97
100
}
Original file line number Diff line number Diff line change @@ -63,9 +63,8 @@ struct Defaults<ClientSDK> {
63
63
}
64
64
65
65
static auto PollingConfig () -> shared::built::PollingConfig<ClientSDK> {
66
- // Default to 5 minutes;
67
- return {std::chrono::seconds{5 * 60 }, " /msdk/evalx/contexts" ,
68
- " /msdk/evalx/context" , std::chrono::seconds{30 }};
66
+ return {std::chrono::minutes (5 ), " /msdk/evalx/contexts" ,
67
+ " /msdk/evalx/context" , std::chrono::minutes (5 )};
69
68
}
70
69
71
70
static std::size_t MaxCachedContexts () { return 5 ; }
You can’t perform that action at this time.
0 commit comments