@@ -21,7 +21,7 @@ import {
21
21
PrecomputedConfiguration ,
22
22
} from '../configuration' ;
23
23
import ConfigurationRequestor from '../configuration-requestor' ;
24
- import { IConfigurationStore } from '../configuration-store/configuration-store' ;
24
+ import { IConfigurationStore , ISyncStore } from '../configuration-store/configuration-store' ;
25
25
import {
26
26
DEFAULT_INITIAL_CONFIG_REQUEST_RETRIES ,
27
27
DEFAULT_POLL_CONFIG_REQUEST_RETRIES ,
@@ -124,7 +124,7 @@ export default class EppoClient {
124
124
private isObfuscated : boolean ;
125
125
private requestPoller ?: IPoller ;
126
126
private readonly evaluator = new Evaluator ( ) ;
127
- protected overridesStore ?: IConfigurationStore < Variation > ;
127
+ protected overridesStore ?: ISyncStore < Variation > ;
128
128
129
129
constructor ( {
130
130
eventDispatcher = new NoOpEventDispatcher ( ) ,
@@ -190,7 +190,7 @@ export default class EppoClient {
190
190
this . isObfuscated = isObfuscated ;
191
191
}
192
192
193
- setOverridesStore ( store : IConfigurationStore < Variation > ) : void {
193
+ setOverridesStore ( store : ISyncStore < Variation > ) : void {
194
194
this . overridesStore = store ;
195
195
}
196
196
@@ -944,7 +944,6 @@ export default class EppoClient {
944
944
const flagEvaluationDetailsBuilder = this . newFlagEvaluationDetailsBuilder ( flagKey ) ;
945
945
const overrideVariation = this . overridesStore ?. get ( flagKey ) ;
946
946
if ( overrideVariation ) {
947
- const configFormat = this . overridesStore ?. getFormat ( ) ?? '' ;
948
947
const flagEvaluationDetails = flagEvaluationDetailsBuilder
949
948
. setMatch (
950
949
0 ,
@@ -962,7 +961,7 @@ export default class EppoClient {
962
961
subjectAttributes,
963
962
flagEvaluationDetails,
964
963
doLog : false ,
965
- format : configFormat ,
964
+ format : '' ,
966
965
allocationKey : 'override' ,
967
966
extraLogging : { } ,
968
967
} ;
0 commit comments