[skip ci]Add comment for NewClient (#9753)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/9755/head
sunby 2021-10-12 20:34:33 +08:00 committed by GitHub
parent a0e1189333
commit aac60959d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ func getDataCoordAddress(sess *sessionutil.Session) (string, error) {
return ms.Address, nil
}
// NewClient creates a new client instance
func NewClient(ctx context.Context, metaRoot string, etcdEndpoints []string) (*Client, error) {
sess := sessionutil.NewSession(ctx, metaRoot, etcdEndpoints)
if sess == nil {