File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
core/src/commonMain/kotlin/com/powersync/sync Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,13 @@ public data class RSocketKeepAlive(
7373 val interval : Duration ,
7474 val maxLifetime : Duration ,
7575) {
76- internal fun toRSocket (): KeepAlive {
77- return KeepAlive (interval, maxLifetime)
78- }
76+ internal fun toRSocket (): KeepAlive = KeepAlive (interval, maxLifetime)
7977
8078 internal companion object {
81- val default = RSocketKeepAlive (
82- interval = 20.0 .seconds,
83- maxLifetime = 30.0 .seconds,
84- )
79+ val default =
80+ RSocketKeepAlive (
81+ interval = 20.0 .seconds,
82+ maxLifetime = 30.0 .seconds,
83+ )
8584 }
8685}
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import co.touchlab.kermit.Logger
44import co.touchlab.kermit.Severity
55import co.touchlab.stately.concurrency.AtomicReference
66import com.powersync.ExperimentalPowerSyncAPI
7- import com.powersync.PowerSyncException
87import com.powersync.bucket.BucketChecksum
98import com.powersync.bucket.BucketRequest
109import com.powersync.bucket.BucketStorage
@@ -401,7 +400,7 @@ internal class SyncStream(
401400 status.update { copy(downloadError = null ) }
402401 }
403402 is Instruction .UnknownInstruction -> {
404- throw PowerSyncException ( " Unknown instruction received from core extension: ${instruction.raw} " , null )
403+ logger.w { " Unknown instruction received from core extension: ${instruction.raw} " }
405404 }
406405 }
407406 }
You can’t perform that action at this time.
0 commit comments