MSP-5014 Try get rid of global service and autocomplete

This commit is contained in:
Синельник Тимур Романович committed 2025-03-24 11:30:39 +03:00
1 parent 84f639a9d3
commit c267b1ae6e
15 files changed
+468 -335

No files matched your search

+2 -2
View File
@@ -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
}