跳到主要内容
版本:v2.5.x

Close()

This method closes the currently connected Milvus deployment.

Go
func (c *Client) Close(ctx context.Context) error

Request Parameters

Parameter

Description

Type

ctx

Context for the current call to work.

context.Context

Return

Null

Example

Go
import (
"context"
"github.com/milvus-io/milvus/client/v2/milvusclient"
)

mclient, err := client.NewClient(context.Background(), client.ClientConfig{
Address: "http://localhost:19530",
})

mclient.close()