From d2403d2f0cc1fbe018fedd3173771d944865a273 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sat, 24 May 2025 21:03:59 -0400 Subject: [PATCH] etcd: client: str: We do not want the prefix match This was a likely copy+pasta error, since we match precise strings here. If we had two similarly prefixed strings, we'd have an error. --- etcd/client/str/str.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcd/client/str/str.go b/etcd/client/str/str.go index ce0a94a9..a436dfb7 100644 --- a/etcd/client/str/str.go +++ b/etcd/client/str/str.go @@ -62,7 +62,7 @@ func WatchStr(ctx context.Context, client interfaces.Client, key string) (chan e func GetStr(ctx context.Context, client interfaces.Client, key string) (string, error) { // new key structure is $NS/strings/$key = $data path := fmt.Sprintf("%s/strings/%s", ns, key) - keyMap, err := client.Get(ctx, path, etcd.WithPrefix()) + keyMap, err := client.Get(ctx, path) if err != nil { return "", errwrap.Wrapf(err, "could not get strings in: %s", key) }