@@ -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 ( ) ,
@@ -205,7 +205,7 @@ export default class EppoClient {
205
205
this . isObfuscated = isObfuscated ;
206
206
}
207
207
208
- setOverridesStore ( store : IConfigurationStore < Variation > ) : void {
208
+ setOverridesStore ( store : ISyncStore < Variation > ) : void {
209
209
this . overridesStore = store ;
210
210
}
211
211
@@ -959,7 +959,6 @@ export default class EppoClient {
959
959
const flagEvaluationDetailsBuilder = this . newFlagEvaluationDetailsBuilder ( flagKey ) ;
960
960
const overrideVariation = this . overridesStore ?. get ( flagKey ) ;
961
961
if ( overrideVariation ) {
962
- const configFormat = this . overridesStore ?. getFormat ( ) ?? '' ;
963
962
const flagEvaluationDetails = flagEvaluationDetailsBuilder
964
963
. setMatch (
965
964
0 ,
@@ -977,7 +976,7 @@ export default class EppoClient {
977
976
subjectAttributes,
978
977
flagEvaluationDetails,
979
978
doLog : false ,
980
- format : configFormat ,
979
+ format : '' ,
981
980
allocationKey : 'override' ,
982
981
extraLogging : { } ,
983
982
} ;
0 commit comments