[skip ci] Add comment for grpc client util (#13168)

Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>
pull/13190/head
edward.zeng 2021-12-10 17:05:42 +08:00 committed by GitHub
parent 85c93b8844
commit 0b66a69f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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
}