mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 04:07:47 +08:00
example update
This commit is contained in:
parent
1fb9be0628
commit
a887cedb99
@ -74,5 +74,4 @@ func StartRequests() {
|
||||
return
|
||||
}
|
||||
g.Log().Info(ctx, "delete id:", -1)
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user