File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -138,16 +138,18 @@ export default class EppoClient {
138
138
sdkVersion,
139
139
baseUrl, // Default is set in ApiEndpoints constructor if undefined
140
140
requestTimeoutMs = DEFAULT_REQUEST_TIMEOUT_MS ,
141
- pollingIntervalMs = DEFAULT_POLL_INTERVAL_MS ,
142
141
numInitialRequestRetries = DEFAULT_INITIAL_CONFIG_REQUEST_RETRIES ,
143
142
numPollRequestRetries = DEFAULT_POLL_CONFIG_REQUEST_RETRIES ,
144
143
pollAfterSuccessfulInitialization = false ,
145
144
pollAfterFailedInitialization = false ,
146
145
throwOnFailedInitialization = false ,
147
146
skipInitialPoll = false ,
148
147
} = this . configurationRequestParameters ;
148
+
149
+ let { pollingIntervalMs = DEFAULT_POLL_INTERVAL_MS } = this . configurationRequestParameters ;
149
150
if ( pollingIntervalMs <= 0 ) {
150
- logger . error ( 'PollingIntervalMs must be greater than 0' ) ;
151
+ logger . error ( 'pollingIntervalMs must be greater than 0. Using default' ) ;
152
+ pollingIntervalMs = DEFAULT_POLL_INTERVAL_MS ;
151
153
}
152
154
153
155
// todo: Inject the chain of dependencies below
You can’t perform that action at this time.
0 commit comments