fix: stupid bug.

This commit is contained in:
tx7do
2023-10-26 18:37:04 +08:00
parent adcd17b3e2
commit 78ae649d26
2 changed files with 3 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ func LoadBootstrapConfig(configPath string) error {
initBootstrapConfig()
for c := range configList {
for _, c := range configList {
if err := cfg.Scan(c); err != nil {
return err
}
@@ -175,7 +175,7 @@ func LoadRemoteConfigSourceConfigs(configPath string) (error, *conf.RemoteConfig
initBootstrapConfig()
for c := range configList {
for _, c := range configList {
if err = cfg.Scan(c); err != nil {
return err, nil
}