Skip to content

Commit

Permalink
fix: missing bandit store for precomputedInit
Browse files Browse the repository at this point in the history
  • Loading branch information
sameerank committed Jan 16, 2025
1 parent 4bd7073 commit 90f6515
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ const flagConfigurationStore = configurationStorageFactory({
forceMemoryOnly: true,
});

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

/**
* Client for assigning experiment variations.
Expand Down Expand Up @@ -650,6 +651,7 @@ export async function precomputedInit(
precomputedFlagStore: memoryOnlyPrecomputedFlagsStore,
requestParameters,
subject,
precomputedBanditStore: memoryOnlyPrecomputedBanditsStore,
});

EppoPrecomputedJSClient.instance.setAssignmentLogger(config.assignmentLogger);
Expand Down

0 comments on commit 90f6515

Please sign in to comment.