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

Commit 2bfe2c1

Browse files
committed
refactor: update listener class reference to use owner for better context
1 parent 363d85c commit 2bfe2c1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

surf-cloud-core/surf-cloud-core-client/src/main/kotlin/dev/slne/surf/cloud/core/client/netty/network/ClientRunningPacketListenerImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ class ClientRunningPacketListenerImpl(
368368
.withCause(e)
369369
.log(
370370
"Failed to call listener %s for packet %s",
371-
listener::class.simpleName,
371+
listener.owner::class.simpleName,
372372
packet::class.simpleName
373373
)
374374
}

surf-cloud-core/surf-cloud-core-client/src/main/kotlin/dev/slne/surf/cloud/core/client/netty/network/ClientSynchronizingPacketListenerImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class ClientSynchronizingPacketListenerImpl(
140140
.withCause(e)
141141
.log(
142142
"Failed to call listener %s for packet %s",
143-
listener::class.simpleName,
143+
listener.owner::class.simpleName,
144144
packet::class.simpleName
145145
)
146146
}

surf-cloud-standalone/src/main/kotlin/dev/slne/surf/cloud/standalone/netty/server/network/ServerRunningPacketListenerImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ class ServerRunningPacketListenerImpl(
538538
.withCause(e)
539539
.log(
540540
"Failed to call listener %s for packet %s",
541-
listener::class.simpleName,
541+
listener.owner::class.simpleName,
542542
packet::class.simpleName
543543
)
544544
}

surf-cloud-standalone/src/main/kotlin/dev/slne/surf/cloud/standalone/netty/server/network/ServerSynchronizingPacketListenerImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class ServerSynchronizingPacketListenerImpl(
121121
.withCause(e)
122122
.log(
123123
"Failed to call listener %s for packet %s",
124-
listener::class.simpleName,
124+
listener.owner::class.simpleName,
125125
packet::class.simpleName
126126
)
127127
}

0 commit comments

Comments
 (0)