From a17d9ef270dc86bc92ebc9e320101866a7762363 Mon Sep 17 00:00:00 2001 From: godotg Date: Thu, 21 Mar 2024 16:13:14 +0800 Subject: [PATCH] perf[registry]: custom root path --- .../java/com/zfoo/net/consumer/registry/ZookeeperRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/src/main/java/com/zfoo/net/consumer/registry/ZookeeperRegistry.java b/net/src/main/java/com/zfoo/net/consumer/registry/ZookeeperRegistry.java index ae9109bb..ca199400 100644 --- a/net/src/main/java/com/zfoo/net/consumer/registry/ZookeeperRegistry.java +++ b/net/src/main/java/com/zfoo/net/consumer/registry/ZookeeperRegistry.java @@ -130,7 +130,7 @@ public class ZookeeperRegistry implements IRegistry { } if (StringUtils.isNotBlank(registryConfig.getPath())) { - rootPath = registryConfig.getPath(); + rootPath = StringUtils.trim(registryConfig.getPath()); providerRootPath = rootPath + "/provider"; consumerRootPath = rootPath + "/consumer"; }