We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a6a24 commit d408714Copy full SHA for d408714
jacodb-ets/grpc-client/src/main/kotlin/org/jacodb/ets/grpc/GreeterClient.kt
@@ -34,8 +34,9 @@ class GreeterClient(
34
val request = helloRequest {
35
this.name = name
36
}
37
+ logger.info { "Sending request: $request" }
38
val response = stub.sayHello(request)
- logger.info { "Response: ${response.message}" }
39
+ logger.info { "Received response: $response" }
40
41
42
override fun close() {
@@ -47,5 +48,6 @@ suspend fun main() {
47
48
val port = 50051
49
val channel = grpcChannel(port = port)
50
val client = GreeterClient(channel)
- client.greet(System.getProperty("user.name"))
51
+ val name = System.getProperty("user.name")
52
+ client.greet(name)
53
0 commit comments