Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
zhukaihan committed Sep 24, 2024
1 parent c9b8130 commit 5357083
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/kotlin/deployment/DeploymentRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit

private const val MIN_COHORT_POLLING_INTERVAL = 60000L
private const val FLAG_POLLING_JITTER = 1000L

internal class DeploymentRunner(
private val config: LocalEvaluationConfig,
Expand All @@ -42,13 +43,15 @@ internal class DeploymentRunner(
// Fallback in this order: proxy, stream, poll.
private val amplitudeFlagConfigPoller = FlagConfigFallbackRetryWrapper(
FlagConfigPoller(flagConfigApi, flagConfigStorage, cohortLoader, cohortStorage, config, metrics),
null, config.flagConfigPollerIntervalMillis, 1000
null,
config.flagConfigPollerIntervalMillis,
)
private val amplitudeFlagConfigUpdater =
if (flagConfigStreamApi != null)
FlagConfigFallbackRetryWrapper(
FlagConfigStreamer(flagConfigStreamApi, flagConfigStorage, cohortLoader, cohortStorage, metrics),
amplitudeFlagConfigPoller,
FLAG_POLLING_JITTER
)
else amplitudeFlagConfigPoller
private val flagConfigUpdater =
Expand Down

0 comments on commit 5357083

Please sign in to comment.