Skip to content

Commit 2c2db42

Browse files
yfrancisgreghuels
authored andcommitted
change overrides store type to ISyncStore
1 parent 2f3865d commit 2c2db42

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/client/eppo-client.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
PrecomputedConfiguration,
2222
} from '../configuration';
2323
import ConfigurationRequestor from '../configuration-requestor';
24-
import { IConfigurationStore } from '../configuration-store/configuration-store';
24+
import { IConfigurationStore, ISyncStore } from '../configuration-store/configuration-store';
2525
import {
2626
DEFAULT_INITIAL_CONFIG_REQUEST_RETRIES,
2727
DEFAULT_POLL_CONFIG_REQUEST_RETRIES,
@@ -124,7 +124,7 @@ export default class EppoClient {
124124
private isObfuscated: boolean;
125125
private requestPoller?: IPoller;
126126
private readonly evaluator = new Evaluator();
127-
protected overridesStore?: IConfigurationStore<Variation>;
127+
protected overridesStore?: ISyncStore<Variation>;
128128

129129
constructor({
130130
eventDispatcher = new NoOpEventDispatcher(),
@@ -205,7 +205,7 @@ export default class EppoClient {
205205
this.isObfuscated = isObfuscated;
206206
}
207207

208-
setOverridesStore(store: IConfigurationStore<Variation>): void {
208+
setOverridesStore(store: ISyncStore<Variation>): void {
209209
this.overridesStore = store;
210210
}
211211

@@ -959,7 +959,6 @@ export default class EppoClient {
959959
const flagEvaluationDetailsBuilder = this.newFlagEvaluationDetailsBuilder(flagKey);
960960
const overrideVariation = this.overridesStore?.get(flagKey);
961961
if (overrideVariation) {
962-
const configFormat = this.overridesStore?.getFormat() ?? '';
963962
const flagEvaluationDetails = flagEvaluationDetailsBuilder
964963
.setMatch(
965964
0,
@@ -977,7 +976,7 @@ export default class EppoClient {
977976
subjectAttributes,
978977
flagEvaluationDetails,
979978
doLog: false,
980-
format: configFormat,
979+
format: '',
981980
allocationKey: 'override',
982981
extraLogging: {},
983982
};

0 commit comments

Comments
 (0)