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

Commit aba11f9

Browse files
committed
refactor: format broadcast function parameters for improved readability
1 parent f8a65db commit aba11f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

surf-cloud-standalone/src/main/kotlin/dev/slne/surf/cloud/standalone/netty/server/connection/ServerConnectionListener.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ class ServerConnectionListener(
207207
}
208208
}
209209

210-
fun broadcast(packet: NettyPacket, flush: Boolean = true, except: (ConnectionImpl) -> Boolean = { false }) {
210+
fun broadcast(
211+
packet: NettyPacket,
212+
flush: Boolean = true,
213+
except: (ConnectionImpl) -> Boolean = { false }
214+
) {
211215
require(packet !is RespondingNettyPacket<*>) { "Cannot broadcast responding packets" }
212216

213217
val activeProtocols = packet.protocols

0 commit comments

Comments
 (0)