File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
plugins {
6
- kotlin(" jvm" ) version " 2.1.10"
7
- kotlin(" plugin.serialization" ) version " 2.1.10"
8
- id(" org.jetbrains.kotlinx.rpc.plugin" ) version " 0.7.0"
6
+ kotlin(" jvm" ) version " 2.2.0"
7
+ id(" org.jetbrains.kotlinx.rpc.plugin" ) version " 0.8.0-grpc-79"
9
8
id(" com.google.protobuf" ) version " 0.9.5"
10
9
}
11
10
@@ -22,7 +21,7 @@ kotlin {
22
21
}
23
22
24
23
dependencies {
25
- implementation(" org.jetbrains.kotlinx:kotlinx-rpc-grpc-core:0.7 .0-grpc-56 " )
24
+ implementation(" org.jetbrains.kotlinx:kotlinx-rpc-grpc-core:0.8 .0-grpc-71 " )
26
25
implementation(" ch.qos.logback:logback-classic:1.5.18" )
27
26
implementation(" io.grpc:grpc-netty:1.73.0" )
28
27
}
Original file line number Diff line number Diff line change 2
2
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
- import kotlinx.coroutines.cancel
6
5
import kotlinx.coroutines.runBlocking
7
6
import kotlinx.rpc.grpc.GrpcClient
8
7
import kotlinx.rpc.withService
@@ -19,6 +18,4 @@ fun main(): Unit = runBlocking {
19
18
}
20
19
val result = recognizer.recognize(image)
21
20
println (" Recognized category: ${result.category} " )
22
-
23
- grpcClient.cancel()
24
21
}
You can’t perform that action at this time.
0 commit comments