Skip to content

Commit 5c29124

Browse files
committed
drop initial config
1 parent 3ef59d0 commit 5c29124

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

src/main/java/com/eppo/sdk/EppoClient.java

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package com.eppo.sdk;
22

33
import cloud.eppo.BaseEppoClient;
4-
import cloud.eppo.api.Configuration;
54
import cloud.eppo.logging.AssignmentLogger;
65
import cloud.eppo.logging.BanditLogger;
76
import com.eppo.sdk.helpers.AppDetails;
87
import com.eppo.sdk.helpers.FetchConfigurationsTask;
98
import java.util.Timer;
10-
import java.util.concurrent.CompletableFuture;
119
import org.slf4j.Logger;
1210
import org.slf4j.LoggerFactory;
1311

@@ -43,8 +41,7 @@ private EppoClient(
4341
String sdkVersion,
4442
AssignmentLogger assignmentLogger,
4543
BanditLogger banditLogger,
46-
boolean isGracefulModel,
47-
CompletableFuture<Configuration> initialConfiguration) {
44+
boolean isGracefulModel) {
4845
super(
4946
apiKey,
5047
host,
@@ -56,7 +53,7 @@ private EppoClient(
5653
isGracefulModel,
5754
false,
5855
true,
59-
initialConfiguration);
56+
null);
6057
}
6158

6259
/** Stops the client from polling Eppo for updated flag and bandit configurations */
@@ -75,7 +72,6 @@ public static class Builder {
7572
private boolean forceReinitialize = DEFAULT_FORCE_REINITIALIZE;
7673
private long pollingIntervalMs = DEFAULT_POLLING_INTERVAL_MS;
7774
private String host = DEFAULT_HOST;
78-
private CompletableFuture<Configuration> initialConfiguration;
7975

8076
/** Sets the API Key--created within the eppo application--to use. This is required. */
8177
public Builder apiKey(String apiKey) {
@@ -139,12 +135,6 @@ public Builder host(String host) {
139135
return this;
140136
}
141137

142-
/** Sets the initial configuration for the client. */
143-
public Builder initialConfiguration(CompletableFuture<Configuration> initialConfiguration) {
144-
this.initialConfiguration = initialConfiguration;
145-
return this;
146-
}
147-
148138
public EppoClient buildAndInit() {
149139
AppDetails appDetails = AppDetails.getInstance();
150140
String sdkName = appDetails.getName();
@@ -163,14 +153,7 @@ public EppoClient buildAndInit() {
163153

164154
instance =
165155
new EppoClient(
166-
apiKey,
167-
sdkName,
168-
sdkVersion,
169-
host,
170-
assignmentLogger,
171-
banditLogger,
172-
isGracefulMode,
173-
initialConfiguration);
156+
apiKey, sdkName, sdkVersion, host, assignmentLogger, banditLogger, isGracefulMode);
174157

175158
// Stop any active polling
176159
stopPolling();

0 commit comments

Comments
 (0)