Skip to content

Commit 79aa01c

Browse files
committed
update comment
1 parent fc1c4e9 commit 79aa01c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/client/eppo-client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ export default class EppoClient {
355355
? inflateResponse(configuration.bandits.response)
356356
: undefined;
357357

358-
// We need to run this method sync, but, because the configuration stores potentially have an async write at the end
359-
// of updating the configuration, the method to do so it also async. Use an IIFE to wrap the async call.
358+
// This method runs async because the configuration stores potentially have an async write at the end of updating
359+
// the configuration. Most instances of offlineInit will use `MemoryOnlyConfigurationStore` instances which actually
360+
// accomplish the config write synchronously.
360361
await this.configurationManager.hydrateConfigurationStoresFromUfc(
361362
flagConfigResponse,
362363
banditParamResponse,

0 commit comments

Comments
 (0)