diff --git a/lib/kotlin/cross-test-client/src/main/kotlin/org/apache/thrift/test/TestClient.kt b/lib/kotlin/cross-test-client/src/main/kotlin/org/apache/thrift/test/TestClient.kt index 41147ffe8b8..3eb5f7153f4 100644 --- a/lib/kotlin/cross-test-client/src/main/kotlin/org/apache/thrift/test/TestClient.kt +++ b/lib/kotlin/cross-test-client/src/main/kotlin/org/apache/thrift/test/TestClient.kt @@ -121,7 +121,7 @@ class TestClient : CliktCommand() { else -> throw UnsupportedOperationException( - "only frame transport type is supported for now, got $transportType" + "only frame transport type is supported for now, got $transportType", ) } @@ -280,7 +280,7 @@ class TestClient : CliktCommand() { if (xtructs != null) { for ((string_thing, byte_thing, i32_thing, i64_thing) in xtructs) { print( - "{\"$string_thing\", $byte_thing, $i32_thing, $i64_thing}, " + "{\"$string_thing\", $byte_thing, $i32_thing, $i64_thing}, ", ) } } @@ -536,7 +536,7 @@ private suspend fun ThriftTestClient.structTest(returnCode: Int): Pair { val tNonblockingServerArgs = TNonblockingServer.Args(tNonblockingServerSocket) tNonblockingServerArgs.processor( - if (isMulti) multiplexedProcessor else testProcessor + if (isMulti) multiplexedProcessor else testProcessor, ) tNonblockingServerArgs.protocolFactory(tProtocolFactory) tNonblockingServerArgs.transportFactory(tTransportFactory) @@ -278,7 +278,7 @@ private fun getServerEngine( val tThreadedSelectorServerArgs = TThreadedSelectorServer.Args(tNonblockingServerSocket) tThreadedSelectorServerArgs.processor( - if (isMulti) multiplexedProcessor else testProcessor + if (isMulti) multiplexedProcessor else testProcessor, ) tThreadedSelectorServerArgs.protocolFactory(tProtocolFactory) tThreadedSelectorServerArgs.transportFactory(tTransportFactory) @@ -306,7 +306,7 @@ private fun getServerEngine( else -> { val tThreadPoolServerArgs = TThreadPoolServer.Args(tServerSocket) tThreadPoolServerArgs.processor( - if (isMulti) multiplexedProcessor else testProcessor + if (isMulti) multiplexedProcessor else testProcessor, ) tThreadPoolServerArgs.protocolFactory(tProtocolFactory) tThreadPoolServerArgs.transportFactory(tTransportFactory)