Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

Commit 6538f85

Browse files
committed
Remove calling of log.Fatal when some errors happened in calling SayHello grpc method.
1 parent 6cfde62 commit 6538f85

File tree

1 file changed

+3
-1
lines changed
  • examples/grpc-server-with-prometheus/client

1 file changed

+3
-1
lines changed

examples/grpc-server-with-prometheus/client/client.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ func main() {
5656
// Call “SayHello” method and wait for response from gRPC Server.
5757
_, err := client.SayHello(context.Background(), &pb.HelloRequest{Name: "Test"})
5858
if err != nil {
59-
log.Fatal(err)
59+
log.Printf("Calling the SayHello method unsuccessfully. ErrorInfo: %+v", err)
60+
log.Printf("You should to stop the process")
61+
return
6062
}
6163
time.Sleep(3 * time.Second)
6264
}

0 commit comments

Comments
 (0)