未验证 提交 d824e029 编写于 作者: Z zhenshan.cao 提交者: GitHub

[skip ci]Fix golint error in datanode (#11204)

Signed-off-by: Nzhenshan.cao <zhenshan.cao@zilliz.com>
上级 34c4ef06
......@@ -95,6 +95,7 @@ func (c *Client) resetConnection() {
c.grpc = nil
}
// NewClient creates a client for DataNode.
func NewClient(ctx context.Context, addr string, retryOptions ...retry.Option) (*Client, error) {
if addr == "" {
return nil, fmt.Errorf("address is empty")
......@@ -112,6 +113,7 @@ func NewClient(ctx context.Context, addr string, retryOptions ...retry.Option) (
return client, nil
}
// Init initializes the client.
func (c *Client) Init() error {
Params.Init()
return nil
......@@ -182,10 +184,14 @@ func (c *Client) recall(caller func() (interface{}, error)) (interface{}, error)
return ret, err
}
// Start starts the client.
// Currently, it does nothing.
func (c *Client) Start() error {
return nil
}
// Stop stops the client.
// Currently, it closes the grpc connection with the DataNode.
func (c *Client) Stop() error {
c.cancel()
c.grpcMtx.Lock()
......@@ -196,7 +202,7 @@ func (c *Client) Stop() error {
return nil
}
// Register dummy
// Register does nothing.
func (c *Client) Register() error {
return nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册