support nacos namespace (#2045)

This commit is contained in:
Xin Luo
2025-04-11 14:12:51 +08:00
committed by GitHub
parent d1700009e8
commit 36806d9e5c

View File

@@ -112,6 +112,10 @@ func (c *NacosConfig) ParseConfig(config map[string]any) error {
return errors.New("missing serviceMatcher")
}
if namespace, ok := config["namespace"].(string); ok {
c.Namespace = &namespace
}
matchers := map[string]string{}
for key, value := range serviceMatcher {
matchers[key] = value.(string)