添加无安全认证
This commit is contained in:
parent
3c3199d08b
commit
6de41fa9a4
|
@ -76,6 +76,8 @@ func Auto{{.ClientName}}ClientEx(ctx context.Context, opts ...grpc.DialOption) (
|
||||||
return nil, fmt.Errorf("nameClient must be init. call")
|
return nil, fmt.Errorf("nameClient must be init. call")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()))
|
||||||
|
|
||||||
sel := vo.SelectOneHealthInstanceParam{
|
sel := vo.SelectOneHealthInstanceParam{
|
||||||
ServiceName: "{{.GrpcServiceName}}",
|
ServiceName: "{{.GrpcServiceName}}",
|
||||||
GroupName: groupName,
|
GroupName: groupName,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user