fix: fixconfig

pull/366/head
Arthur 5 years ago
parent ccf31cfdb0
commit ccb63f06a3
  1. 2
      pkg/naming/discovery/discovery.go

@ -102,7 +102,7 @@ type appInfo struct {
}
func fixConfig(c *Config) error {
if len(c.Nodes) == 0 {
if len(c.Nodes) == 0 && env.DiscoveryNodes != "" {
c.Nodes = strings.Split(env.DiscoveryNodes, ",")
}
if c.Region == "" {

Loading…
Cancel
Save