Skip to content

Commit

Permalink
nimbus: Replace serverUrl with RemoteSettingsServer in bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
linabutler committed Apr 9, 2024
1 parent 3a1b6f1 commit 2550d98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import kotlinx.coroutines.NonCancellable
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import mozilla.appservices.remotesettings.RemoteSettingsConfig
import mozilla.appservices.remotesettings.RemoteSettingsServer
import mozilla.telemetry.glean.Glean
import org.json.JSONObject
import org.mozilla.experiments.nimbus.GleanMetrics.NimbusEvents
Expand Down Expand Up @@ -158,7 +159,7 @@ open class Nimbus(
// Initialize Nimbus
val remoteSettingsConfig = server?.let {
RemoteSettingsConfig(
serverUrl = it.url.toString(),
server = RemoteSettingsServer.Custom(it.url.toString()),
collectionName = it.collection,
)
}
Expand Down
2 changes: 1 addition & 1 deletion components/nimbus/ios/Nimbus/NimbusCreate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public extension Nimbus {
let remoteSettings = server.map { server -> RemoteSettingsConfig in
RemoteSettingsConfig(
collectionName: server.collection,
serverUrl: server.url.absoluteString
server: .custom(url: server.url.absoluteString)
)
}
let nimbusClient = try NimbusClient(
Expand Down

0 comments on commit 2550d98

Please sign in to comment.