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(
73
73
val interval : Duration ,
74
74
val maxLifetime : Duration ,
75
75
) {
76
- internal fun toRSocket (): KeepAlive {
77
- return KeepAlive (interval, maxLifetime)
78
- }
76
+ internal fun toRSocket (): KeepAlive = KeepAlive (interval, maxLifetime)
79
77
80
78
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
+ )
85
84
}
86
85
}
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import co.touchlab.kermit.Logger
4
4
import co.touchlab.kermit.Severity
5
5
import co.touchlab.stately.concurrency.AtomicReference
6
6
import com.powersync.ExperimentalPowerSyncAPI
7
- import com.powersync.PowerSyncException
8
7
import com.powersync.bucket.BucketChecksum
9
8
import com.powersync.bucket.BucketRequest
10
9
import com.powersync.bucket.BucketStorage
@@ -401,7 +400,7 @@ internal class SyncStream(
401
400
status.update { copy(downloadError = null ) }
402
401
}
403
402
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} " }
405
404
}
406
405
}
407
406
}
You can’t perform that action at this time.
0 commit comments