mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for EmbedEtcdKV (#12964)
Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>pull/12452/head
parent
42b161ae95
commit
34fadc9ab6
|
@ -65,6 +65,7 @@ func NewEmbededEtcdKV(cfg *embed.Config, rootPath string) (*EmbedEtcdKV, error)
|
|||
return kv, nil
|
||||
}
|
||||
|
||||
// Close closes the embedded etcd
|
||||
func (kv *EmbedEtcdKV) Close() {
|
||||
kv.closeOnce.Do(func() {
|
||||
kv.client.Close()
|
||||
|
@ -73,6 +74,7 @@ func (kv *EmbedEtcdKV) Close() {
|
|||
|
||||
}
|
||||
|
||||
// GetPath returns the full path by given key
|
||||
func (kv *EmbedEtcdKV) GetPath(key string) string {
|
||||
return path.Join(kv.rootPath, key)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue