Skip to content

Commit fc1c4e9

Browse files
committed
don't initialize after bootstrap
1 parent 7d8df74 commit fc1c4e9

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/client/eppo-client.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -361,27 +361,9 @@ export default class EppoClient {
361361
flagConfigResponse,
362362
banditParamResponse,
363363
);
364-
365-
// Still initialize the client in case polling is needed.
366-
// fire-and-forget so ignore the resolution of this promise.
367-
this.initialize()
368-
.then(() => {
369-
logger.debug('Eppo SDK polling initialization complete');
370-
return;
371-
})
372-
.catch((e) => {
373-
logger.error('Eppo SDK Error initializing polling after bootstrap()', e);
374-
});
375364
}
376365

377-
/**
378-
* @deprecated use `initialize` instead.
379-
*/
380366
async fetchFlagConfigurations() {
381-
return this.initialize();
382-
}
383-
384-
async initialize() {
385367
if (!this.configurationRequestParameters) {
386368
throw new Error(
387369
'Eppo SDK unable to fetch flag configurations without configuration request parameters',

0 commit comments

Comments
 (0)