From feb146e8d84e314fbfc262bc9f36791b4292196b Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 23 Sep 2020 16:00:29 +0200 Subject: [PATCH] Code polish --- test/dorkboxTest/network/PingPongTest.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/dorkboxTest/network/PingPongTest.kt b/test/dorkboxTest/network/PingPongTest.kt index 1738a2dd..fba7393d 100644 --- a/test/dorkboxTest/network/PingPongTest.kt +++ b/test/dorkboxTest/network/PingPongTest.kt @@ -67,7 +67,7 @@ class PingPongTest : BaseTest() { fail = "Error during processing. $throwable" } - server.onConnect { connection -> + server.onConnect { _ -> server.forEachConnection { connection -> connection.logger.error("server connection: $connection") } @@ -87,9 +87,7 @@ class PingPongTest : BaseTest() { client.onConnect { connection -> - client.forEachConnection { connection -> - connection.logger.error("client connection: $connection") - } + connection.logger.error("client connection: $connection") fail = null connection.send(data)