bseto commented on code in PR #283:
URL:
https://github.com/apache/kvrocks-controller/pull/283#discussion_r2003268847
##########
store/engine/consul/consul.go:
##########
@@ -312,3 +316,10 @@ func (c *Consul) Close() error {
c.client = nil
return nil
}
+
+func sanitizeKey(key string) string {
+ if len(key) > 0 && key[0] == '/' {
+ key = strings.TrimPrefix(key, "/")
+ }
Review Comment:
trimming the leading `/` to avoid the error
https://github.com/hashicorp/consul/blob/main/api/kv.go#L208-L210
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]