Skip to content

Commit

Permalink
fix: add serverUrl field to AssignmentConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Feb 7, 2024
1 parent 3a390b2 commit 1d67288
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/AssignmentConfiguration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ data class AssignmentConfiguration(
val eventUploadThreshold: Int = 10,
val eventUploadPeriodMillis: Int = 10000,
val useBatchMode: Boolean = true,
val serverUrl: String = "https://api2.amplitude.com/2/httpapi",
)
1 change: 1 addition & 0 deletions src/main/kotlin/LocalEvaluationClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class LocalEvaluationClient internal constructor(
setEventUploadThreshold(config.assignmentConfiguration.eventUploadThreshold)
setEventUploadPeriodMillis(config.assignmentConfiguration.eventUploadPeriodMillis)
useBatchMode(config.assignmentConfiguration.useBatchMode)
setServerUrl(config.assignmentConfiguration.serverUrl)
},
InMemoryAssignmentFilter(config.assignmentConfiguration.cacheCapacity),
)
Expand Down

0 comments on commit 1d67288

Please sign in to comment.