diff --git a/registry/base_configuration_listener.go b/registry/base_configuration_listener.go index b67de779140fbfd0e4779e41148bdc12f1e05d38..f9c34c1c9d35835ba26609bea7af3dddd0f6ec33 100644 --- a/registry/base_configuration_listener.go +++ b/registry/base_configuration_listener.go @@ -104,7 +104,7 @@ func ToConfigurators(urls []*common.URL, f func(url *common.URL) config_center.C var override map[string][]string = url.GetParams() delete(override, constant.ANYHOST_KEY) if len(override) == 0 { - configurators = configurators[:0] + configurators = nil continue } configurators = append(configurators, f(url))