Skip to content

Commit bee57ca

Browse files
committed
detekt
1 parent 9876227 commit bee57ca

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

krpc/krpc-client/src/commonMain/kotlin/kotlinx/rpc/krpc/client/KrpcClient.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import kotlinx.coroutines.SupervisorJob
1616
import kotlinx.coroutines.cancel
1717
import kotlinx.coroutines.cancelAndJoin
1818
import kotlinx.coroutines.channels.Channel
19-
import kotlinx.coroutines.channels.ClosedSendChannelException
2019
import kotlinx.coroutines.coroutineScope
2120
import kotlinx.coroutines.currentCoroutineContext
2221
import kotlinx.coroutines.ensureActive

krpc/krpc-core/src/commonMain/kotlin/kotlinx/rpc/krpc/internal/KrpcEndpoint.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package kotlinx.rpc.krpc.internal
66

77
import kotlinx.coroutines.CoroutineName
8-
import kotlinx.coroutines.channels.ClosedSendChannelException
98
import kotlinx.coroutines.launch
109
import kotlinx.rpc.internal.utils.InternalRpcApi
1110

krpc/krpc-core/src/commonMain/kotlin/kotlinx/rpc/krpc/internal/KrpcReceiveHandler.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import kotlinx.atomicfu.atomic
88
import kotlinx.coroutines.CancellationException
99
import kotlinx.coroutines.CoroutineName
1010
import kotlinx.coroutines.CoroutineStart
11-
import kotlinx.coroutines.channels.ClosedSendChannelException
1211
import kotlinx.coroutines.launch
1312
import kotlinx.coroutines.withTimeoutOrNull
1413
import kotlinx.rpc.internal.utils.InternalRpcApi

krpc/krpc-core/src/commonTest/kotlin/kotlinx/rpc/krpc/KrpcReceiveHandlerTest.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ internal class KrpcReceiveHandlerTest : KrpcReceiveHandlerBaseTest() {
7171

7272
acting.broadcastWindowUpdate(-1, null, "service", "callId")
7373
val windowResult2 = decodeWindow(channel.receive() as KrpcGenericMessage)
74-
assertEquals(-1, (windowResult2 as WindowResult.Success).update)
74+
assertEquals(-1, (windowResult2 as WindowResult.Success).update)
7575

7676
acting.broadcastWindowUpdate(Int.MAX_VALUE, null, "service", "callId")
7777
val windowResult3 = decodeWindow(channel.receive() as KrpcGenericMessage)
78-
assertEquals(Int.MAX_VALUE, (windowResult3 as WindowResult.Success).update)
78+
assertEquals(Int.MAX_VALUE, (windowResult3 as WindowResult.Success).update)
7979

8080
acting.broadcastWindowUpdate(Int.MIN_VALUE, null, "service", "callId")
8181
val windowResult4 = decodeWindow(channel.receive() as KrpcGenericMessage)
82-
assertEquals(Int.MIN_VALUE, (windowResult4 as WindowResult.Success).update)
82+
assertEquals(Int.MIN_VALUE, (windowResult4 as WindowResult.Success).update)
8383
}
8484

8585
@Test
@@ -172,7 +172,11 @@ internal class KrpcReceiveHandlerTest : KrpcReceiveHandlerBaseTest() {
172172
withContext(Dispatchers.Default) {
173173
delay(5.seconds)
174174
}
175-
println("Collected: ${collected.size}, launches: ${counter.launches.value}, total: ${counter.total.value}")
175+
println(
176+
"Collected: ${collected.size}, " +
177+
"launches: ${counter.launches.value}, " +
178+
"total: ${counter.total.value}"
179+
)
176180
}
177181
}
178182

krpc/krpc-server/src/commonMain/kotlin/kotlinx/rpc/krpc/server/internal/KrpcServerService.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package kotlinx.rpc.krpc.server.internal
66

77
import kotlinx.coroutines.*
8-
import kotlinx.coroutines.channels.ClosedSendChannelException
98
import kotlinx.coroutines.flow.Flow
109
import kotlinx.rpc.annotations.Rpc
1110
import kotlinx.rpc.descriptor.RpcInvokator

krpc/krpc-test/src/commonMain/kotlin/kotlinx/rpc/krpc/test/KrpcTransportTestBase.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,9 @@ abstract class KrpcTransportTestBase {
336336
}
337337

338338
@Test
339-
fun RPC_should_be_able_to_receive_100_000_ints_with_batching_in_reasonable_time() = runTest(timeout = EXTENDED_TIMEOUT) {
339+
fun RPC_should_be_able_to_receive_100_000_ints_with_batching_in_reasonable_time() = runTest(
340+
timeout = EXTENDED_TIMEOUT,
341+
) {
340342
val n = iterations_100_000
341343
assertEquals(client.getNIntsBatched(n).last().last(), n)
342344
}
File renamed without changes.

0 commit comments

Comments
 (0)