Close()
This method closes the currently connected Milvus deployment.
func (c *Client) Close(ctx context.Context) error
Request Parameters
Parameter |
Description |
Type |
---|---|---|
|
Context for the current call to work. |
|
Return
Null
Example
import (
"context"
"github.com/milvus-io/milvus/v2/milvusclient"
)
mclient, err := client.NewClient(context.Background(), client.ClientConfig{
Address: "http://localhost:19530",
})
mclient.close()