Skip to content

Commit efdc30d

Browse files
Fixing typo
1 parent 9201e2a commit efdc30d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

client/src/main/java/io/split/client/CacheUpdaterService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void updateCache(Map<SplitAndKey, LocalhostSplit> map) {
4545
}
4646
configurations.put(localhostSplit.treatment, localhostSplit.config);
4747

48-
split = new ParsedSplit(splitName, 0, false, treatment,conditions, LOCALHOST, 0, 100, 0, 0, configurations);
48+
split = new ParsedSplit(splitName, 0, false, treatment,conditions, LOCALHOST, 0, 100, 0, 0, configurations);
4949
_splitCache.put(split);
5050
}
5151
}

client/src/main/java/io/split/client/LocalhostSplitFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class LocalhostSplitFactory implements SplitFactory {
3232
private final SplitClient _client;
3333
private final LocalhostSplitManager _manager;
3434
private final AbstractLocalhostSplitFile _splitFile;
35-
private final CacheUpdaterService _cachCacheUpdaterService;
35+
private final CacheUpdaterService _cacheUpdaterService;
3636

3737
public static LocalhostSplitFactory createLocalhostSplitFactory(SplitClientConfig config) throws IOException {
3838
String directory = System.getProperty("user.home");
@@ -55,8 +55,8 @@ public LocalhostSplitFactory(String directory, String file) throws IOException {
5555
SDKReadinessGates sdkReadinessGates = new SDKReadinessGates();
5656

5757
sdkReadinessGates.splitsAreReady();
58-
_cachCacheUpdaterService = new CacheUpdaterService(splitCache);
59-
_cachCacheUpdaterService.updateCache(splitAndKeyToTreatment);
58+
_cacheUpdaterService = new CacheUpdaterService(splitCache);
59+
_cacheUpdaterService.updateCache(splitAndKeyToTreatment);
6060
_client = new SplitClientImpl(this, splitCache,
6161
new ImpressionsManager.NoOpImpressionsManager(), new Metrics.NoopMetrics(), new NoopEventClient(),
6262
SplitClientConfig.builder().setBlockUntilReadyTimeout(1).build(), sdkReadinessGates, new EvaluatorImp(splitCache));
@@ -88,7 +88,7 @@ public boolean isDestroyed() {
8888
}
8989

9090
public void updateFeatureToTreatmentMap(Map<SplitAndKey, LocalhostSplit> featureToTreatmentMap) {
91-
_cachCacheUpdaterService.updateCache(featureToTreatmentMap);
91+
_cacheUpdaterService.updateCache(featureToTreatmentMap);
9292
_manager.updateFeatureToTreatmentMap(featureToTreatmentMap);
9393
}
9494
}

0 commit comments

Comments
 (0)