From a887cedb9969fd92e80c7c0197e6803c58c29313 Mon Sep 17 00:00:00 2001 From: John Guo Date: Wed, 9 Feb 2022 16:51:15 +0800 Subject: [PATCH] example update --- example/trace/grpc_with_db/client/main.go | 1 - example/trace/grpc_with_db/protobuf/user/client.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/example/trace/grpc_with_db/client/main.go b/example/trace/grpc_with_db/client/main.go index 24f379def..5a68dacf5 100644 --- a/example/trace/grpc_with_db/client/main.go +++ b/example/trace/grpc_with_db/client/main.go @@ -74,5 +74,4 @@ func StartRequests() { return } g.Log().Info(ctx, "delete id:", -1) - } diff --git a/example/trace/grpc_with_db/protobuf/user/client.go b/example/trace/grpc_with_db/protobuf/user/client.go index f373b1167..50accd9db 100644 --- a/example/trace/grpc_with_db/protobuf/user/client.go +++ b/example/trace/grpc_with_db/protobuf/user/client.go @@ -7,7 +7,7 @@ import ( ) const ( - AppID = "demo" + ServiceName = "demo" ) type Client struct { @@ -15,7 +15,7 @@ type Client struct { } func NewClient(options ...grpc.DialOption) (*Client, error) { - conn, err := krpc.Client.NewGrpcClientConn(AppID, options...) + conn, err := krpc.Client.NewGrpcClientConn(ServiceName, options...) if err != nil { return nil, err }