example update

This commit is contained in:
John Guo 2022-02-09 16:51:15 +08:00
parent 1fb9be0628
commit a887cedb99
2 changed files with 2 additions and 3 deletions

View File

@ -74,5 +74,4 @@ func StartRequests() {
return
}
g.Log().Info(ctx, "delete id:", -1)
}

View File

@ -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
}