Commit 7c786f6 Bernd Warmuth
committed
1 parent 76771f8 commit 7c786f6 Copy full SHA for 7c786f6
File tree 2 files changed +5
-6
lines changed
providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public final class Config {
15
15
16
16
static final int DEFAULT_DEADLINE = 500 ;
17
17
static final int DEFAULT_STREAM_DEADLINE_MS = 10 * 60 * 1000 ;
18
- static final int DEFAULT_STREAM_RETRY_GRACE_PERIOD = 50_000 ;
18
+ static final int DEFAULT_STREAM_RETRY_GRACE_PERIOD = 50 ;
19
19
static final int DEFAULT_MAX_CACHE_SIZE = 1000 ;
20
20
static final long DEFAULT_KEEP_ALIVE = 0 ;
21
21
@@ -36,7 +36,7 @@ public final class Config {
36
36
static final String KEEP_ALIVE_MS_ENV_VAR_NAME_OLD = "FLAGD_KEEP_ALIVE_TIME" ;
37
37
static final String KEEP_ALIVE_MS_ENV_VAR_NAME = "FLAGD_KEEP_ALIVE_TIME_MS" ;
38
38
static final String TARGET_URI_ENV_VAR_NAME = "FLAGD_TARGET_URI" ;
39
- static final String STREAM_RETRY_GRACE_PERIOD = "FLAGD_RETRY_GRACE_PERIOD_MS " ;
39
+ static final String STREAM_RETRY_GRACE_PERIOD = "FLAGD_RETRY_GRACE_PERIOD " ;
40
40
41
41
static final String RESOLVER_RPC = "rpc" ;
42
42
static final String RESOLVER_IN_PROCESS = "in-process" ;
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ private synchronized void onReady() {
205
205
*/
206
206
private synchronized void onConnectionLost () {
207
207
log .debug ("Connection lost. Emit STALE event..." );
208
- log .debug ("Waiting {}ms for connection to become available..." , gracePeriod );
208
+ log .debug ("Waiting {}s for connection to become available..." , gracePeriod );
209
209
connected = false ;
210
210
211
211
this .onConnectionEvent .accept (
@@ -219,12 +219,11 @@ private synchronized void onConnectionLost() {
219
219
reconnectTask = reconnectExecutor .schedule (
220
220
() -> {
221
221
log .debug (
222
- "Provider did not reconnect successfully within {}ms. Emit ERROR event..." ,
223
- gracePeriod );
222
+ "Provider did not reconnect successfully within {}s. Emit ERROR event..." , gracePeriod );
224
223
this .onConnectionEvent .accept (new ConnectionEvent (false ));
225
224
},
226
225
gracePeriod ,
227
- TimeUnit .MILLISECONDS );
226
+ TimeUnit .SECONDS );
228
227
}
229
228
}
230
229
You can’t perform that action at this time.
0 commit comments