添加无安全认证

This commit is contained in:
huangsimin@fusen.cn 2024-01-29 15:37:03 +08:00
parent 3c3199d08b
commit 6de41fa9a4

View File

@ -76,6 +76,8 @@ func Auto{{.ClientName}}ClientEx(ctx context.Context, opts ...grpc.DialOption) (
return nil, fmt.Errorf("nameClient must be init. call")
}
opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()))
sel := vo.SelectOneHealthInstanceParam{
ServiceName: "{{.GrpcServiceName}}",
GroupName: groupName,