mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-24 03:46:37 +02:00
fix: fixconfig
This commit is contained in:
parent
ccf31cfdb0
commit
ccb63f06a3
@ -102,7 +102,7 @@ type appInfo struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func fixConfig(c *Config) error {
|
func fixConfig(c *Config) error {
|
||||||
if len(c.Nodes) == 0 {
|
if len(c.Nodes) == 0 && env.DiscoveryNodes != "" {
|
||||||
c.Nodes = strings.Split(env.DiscoveryNodes, ",")
|
c.Nodes = strings.Split(env.DiscoveryNodes, ",")
|
||||||
}
|
}
|
||||||
if c.Region == "" {
|
if c.Region == "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user