From 776a01b5b9c28f1315f99148246a3e44031ffe73 Mon Sep 17 00:00:00 2001 From: "edward.zeng" Date: Wed, 17 Nov 2021 19:23:25 +0800 Subject: [PATCH] [skip ci] Add comment to embed etcd kv (#12003) Signed-off-by: Edward Zeng --- internal/kv/etcd/embed_etcd_kv.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/kv/etcd/embed_etcd_kv.go b/internal/kv/etcd/embed_etcd_kv.go index 0173223ce..944db0c99 100644 --- a/internal/kv/etcd/embed_etcd_kv.go +++ b/internal/kv/etcd/embed_etcd_kv.go @@ -77,6 +77,7 @@ func (kv *EmbedEtcdKV) GetPath(key string) string { return path.Join(kv.rootPath, key) } +// LoadWithPrefix returns all the keys and values with the given key prefix func (kv *EmbedEtcdKV) LoadWithPrefix(key string) ([]string, []string, error) { key = path.Join(kv.rootPath, key) log.Debug("LoadWithPrefix ", zap.String("prefix", key)) -- GitLab