Skip to content

Commit 7d2a47f

Browse files
committed
Updated sample for gRPC
1 parent cd4375c commit 7d2a47f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

samples/grpc-app/build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
*/
44

55
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"
98
id("com.google.protobuf") version "0.9.5"
109
}
1110

@@ -22,7 +21,7 @@ kotlin {
2221
}
2322

2423
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")
2625
implementation("ch.qos.logback:logback-classic:1.5.18")
2726
implementation("io.grpc:grpc-netty:1.73.0")
2827
}

samples/grpc-app/src/main/kotlin/Client.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5-
import kotlinx.coroutines.cancel
65
import kotlinx.coroutines.runBlocking
76
import kotlinx.rpc.grpc.GrpcClient
87
import kotlinx.rpc.withService
@@ -19,6 +18,4 @@ fun main(): Unit = runBlocking {
1918
}
2019
val result = recognizer.recognize(image)
2120
println("Recognized category: ${result.category}")
22-
23-
grpcClient.cancel()
2421
}

0 commit comments

Comments
 (0)