🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

Milvus
Zilliz
< Docs
  • Go
    • Client

Close()

This method closes the currently connected Milvus deployment.

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

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

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

mclient.close()

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?