fix(apollo): config return nil when watch err

pull/2376/head
包子 2 years ago committed by GitHub
parent 667d63839c
commit ae505063fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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,

Loading…
Cancel
Save