mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for grpc client util (#13168)
Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>pull/13190/head
parent
85c93b8844
commit
0b66a69f2a
|
@ -56,10 +56,12 @@ func (c *ClientBase) GetRole() string {
|
|||
return c.role
|
||||
}
|
||||
|
||||
// SetGetAddrFunc sets getAddrFunc of client
|
||||
func (c *ClientBase) SetGetAddrFunc(f func() (string, error)) {
|
||||
c.getAddrFunc = f
|
||||
}
|
||||
|
||||
// SetNewGrpcClientFunc sets newGrpcClient of client
|
||||
func (c *ClientBase) SetNewGrpcClientFunc(f func(cc *grpc.ClientConn) interface{}) {
|
||||
c.newGrpcClient = f
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue