Skip to content

Commit b8f579e

Browse files
authored
fix: missing bandit store for precomputedInit (#152)
1 parent 4bd7073 commit b8f579e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ const flagConfigurationStore = configurationStorageFactory({
8181
forceMemoryOnly: true,
8282
});
8383

84-
// Instantiate the precomputed flgas store with memory-only implementation.
84+
// Instantiate the precomputed flags and bandits stores with memory-only implementation.
8585
const memoryOnlyPrecomputedFlagsStore = precomputedFlagsStorageFactory();
86+
const memoryOnlyPrecomputedBanditsStore = precomputedBanditStoreFactory();
8687

8788
/**
8889
* Client for assigning experiment variations.
@@ -650,6 +651,7 @@ export async function precomputedInit(
650651
precomputedFlagStore: memoryOnlyPrecomputedFlagsStore,
651652
requestParameters,
652653
subject,
654+
precomputedBanditStore: memoryOnlyPrecomputedBanditsStore,
653655
});
654656

655657
EppoPrecomputedJSClient.instance.setAssignmentLogger(config.assignmentLogger);

0 commit comments

Comments
 (0)