MSP-5014 Try get rid of global service and autocomplete
This commit is contained in:
1 parent
84f639a9d3
commit
c267b1ae6e
15 files changed
+468
-335
No files matched your search
@@ -4,11 +4,11 @@ import (
|
||||
"github.com/txix-open/isp-kit/grpc/client"
|
||||
)
|
||||
|
||||
func NewClientFromHost(address string) (*client.Client, error) {
|
||||
func NewGrpcClientWithHost(host string) (*client.Client, error) {
|
||||
cli, err := client.Default()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cli.Upgrade([]string{address})
|
||||
cli.Upgrade([]string{host})
|
||||
return cli, nil
|
||||
}
|
||||
Reference in new issue
Block a user