Skip to content

Commit

Permalink
move default value to the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
vahidlazio committed Mar 27, 2024
1 parent 4afad37 commit f6d44d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Provider/src/main/java/com/spotify/confidence/Confidence.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import java.io.File

class Confidence private constructor(
private val clientSecret: String,
private val region: ConfidenceRegion = ConfidenceRegion.GLOBAL,
private val dispatcher: CoroutineDispatcher,
private val eventSenderEngine: EventSenderEngine,
private val root: ConfidenceContextProvider
private val root: ConfidenceContextProvider,
private val region: ConfidenceRegion = ConfidenceRegion.GLOBAL
) : ContextApi, EventSender {
private val removedKeys = mutableListOf<String>()
private val coroutineScope = CoroutineScope(dispatcher)
Expand Down Expand Up @@ -57,10 +57,10 @@ class Confidence private constructor(

override fun withContext(context: Map<String, ConfidenceValue>) = Confidence(
clientSecret,
region,
dispatcher,
eventSenderEngine,
this
this,
region
).also {
it.putContext(context)
}
Expand Down Expand Up @@ -104,7 +104,7 @@ class Confidence private constructor(
return emptyMap()
}
}
return Confidence(clientSecret, region, dispatcher, engine, confidenceContext)
return Confidence(clientSecret, dispatcher, engine, confidenceContext, region)
}
}
}

0 comments on commit f6d44d0

Please sign in to comment.