diff --git a/contrib/config/apollo/watcher.go b/contrib/config/apollo/watcher.go index 670139a26..94ef2ef0b 100644 --- a/contrib/config/apollo/watcher.go +++ b/contrib/config/apollo/watcher.go @@ -31,6 +31,7 @@ func (c *customChangeListener) onChange(namespace string, changes map[string]*st value, err := c.apollo.client.GetConfigCache(namespace).Get("content") if err != nil { log.Warnw("apollo get config failed", "err", err) + return nil } kv = append(kv, &config.KeyValue{ Key: namespace,