Skip to content

Commit

Permalink
Fix autobuilder error
Browse files Browse the repository at this point in the history
  • Loading branch information
cbullinger committed Aug 2, 2023
1 parent 75f84f3 commit 5e58b24
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ class ManageSyncSession : RealmTest() {
val flow = CoroutineScope(Dispatchers.Default).launch {
// :snippet-start: monitor-network-connection
val connectionFlow = realm.syncSession.connectionStateAsFlow()
connectionFlow.collect {
Log.i("Connected to Atlas Device Sync server")
connectionFlow.collect { ConnectionStateChange ->
if (ConnectionStateChange.newState == ConnectionState.CONNECTED) {
Log.i("Connected to Atlas Device Sync server")
}
}
// :snippet-end:
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
val connectionFlow = realm.syncSession.connectionStateAsFlow()
connectionFlow.collect {
Log.i("Connected to Atlas Device Sync server")
connectionFlow.collect { ConnectionStateChange ->
if (ConnectionStateChange.newState == ConnectionState.CONNECTED) {
Log.i("Connected to Atlas Device Sync server")
}
}
2 changes: 1 addition & 1 deletion source/sdk/kotlin/sync/partition-based-sync.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ configuration options and more granular data synchronization.

For more information about how to migrate your App Services App from
Partition-Based Sync to Flexible Sync, refer to :ref:`Migrate Device Sync Modes
<{+kotlin-sync-prefix+}io.realm.kotlin.mongodb.sync-sync-migrate-modes>`.
<realm-sync-migrate-modes>`.

.. _kotlin-update-client-code-after-pbs-to-fs-migration:

Expand Down

0 comments on commit 5e58b24

Please sign in to comment.