Closed xahhy closed 3 years ago
Fix wrong feature flags poller init of the pollingInterval. Which will cause serious unlimited API calling with no interval time
We use the featureFlagsPollingInterval variable when init it. but used the wrong pollingInterval when actually init it.
featureFlagsPollingInterval
pollingInterval
this.featureFlagsPoller = new FeatureFlagsPoller({ featureFlagsPollingInterval: typeof options.featureFlagsPollingInterval === 'number' ? options.featureFlagsPollingInterval : FIVE_MINUTES, personalApiKey: options.personalApiKey, projectApiKey: apiKey, timeout: options.timeout || false, host: this.host, featureFlagCalledCallback, })
...
Changes
Fix wrong feature flags poller init of the pollingInterval. Which will cause serious unlimited API calling with no interval time
We use the
featureFlagsPollingInterval
variable when init it. but used the wrongpollingInterval
when actually init it....
Checklist