Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit 82d3ed1

Browse files
committed
Fix incorrect usage of packet.id in SyncRegistryImpl.kt
1 parent 7bf7042 commit 82d3ed1

File tree

2 files changed

+3
-3
lines changed
  • surf-cloud-core/surf-cloud-core-client/src/main/kotlin/dev/slne/surf/cloud/core/client/sync
  • surf-cloud-standalone/src/main/kotlin/dev/slne/surf/cloud/standalone/sync

2 files changed

+3
-3
lines changed

surf-cloud-core/surf-cloud-core-client/src/main/kotlin/dev/slne/surf/cloud/core/client/sync/SyncRegistryImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SyncRegistryImpl : CommonSyncRegistryImpl() {
3232
fun handleSyncSetDelta(packet: SyncSetDeltaPacket) {
3333
if (!packet.registered) return
3434
val set =
35-
getSet<Any?>(packet.id) ?: error("SyncSet with id '${packet.id}' is not registered")
35+
getSet<Any?>(packet.setId) ?: error("SyncSet with id '${packet.setId}' is not registered")
3636
val lastChangeId = lastChangeIds.getLong(packet.setId)
3737
if (packet.changeId <= lastChangeId) {
3838
log.atInfo()

surf-cloud-standalone/src/main/kotlin/dev/slne/surf/cloud/standalone/sync/SyncRegistryImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ class SyncRegistryImpl : CommonSyncRegistryImpl() {
5353

5454
fun handleSyncSetDeltaPacket(packet: SyncSetDeltaPacket, sender: ConnectionImpl) {
5555
if (!packet.registered) return
56-
val set = getSet<Any?>(packet.id)
56+
val set = getSet<Any?>(packet.setId)
5757
if (set == null) {
5858
log.atWarning()
59-
.log("SyncSet with id '${packet.id}' not found, cannot apply delta")
59+
.log("SyncSet with id '${packet.setId}' not found, cannot apply delta")
6060
return
6161
}
6262

0 commit comments

Comments
 (0)