xiaoluoluo commented on a change in pull request #1205:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1205#discussion_r780154763



##########
File path: client/set.go
##########
@@ -1,16 +1,25 @@
 package client
 
 import (
+       "errors"
        "fmt"
 
        v1sync "github.com/apache/servicecomb-service-center/api/sync/v1"
        "github.com/apache/servicecomb-service-center/pkg/log"
        "google.golang.org/grpc"
+       "google.golang.org/grpc/resolver"
+       "google.golang.org/grpc/resolver/manual"
+)
+
+var (
+       ErrAddrEmpty = errors.New("addr is empty")
+       ErrConnNil   = errors.New("conn is nil")
 )
 
 // SetConfig is client configs
 type SetConfig struct {
-       Addr string
+       Addr   []string
+       Scheme string

Review comment:
       调用请求的时候 会 注册上 解析器  schema 是解析器的名字,这里可以根据自己的业务自己定义




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to