Skip to content

Commit

Permalink
fix:修复配置加密场景下兜底文件容灾失败
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Oct 16, 2023
1 parent a16389d commit aec9db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/flow/configuration/file_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ func (r *ConfigFileRepo) fallbackIfNecessary(retryTimes int, req *configconnecto
if err := r.persistHandler.LoadMessageFromFile(fileName, cacheVal); err != nil {
return
}
log.GetBaseLogger().Errorf("[Config] fallback to local cache success.")

response, err := r.chain.Execute(req, func(configFile *configconnector.ConfigFile) (*configconnector.ConfigFileResponse, error) {
return &configconnector.ConfigFileResponse{
Expand All @@ -251,6 +250,7 @@ func (r *ConfigFileRepo) fallbackIfNecessary(retryTimes int, req *configconnecto
log.GetBaseLogger().Errorf("[Config] fallback to local cache fail. %+v", err)
return
}
log.GetBaseLogger().Errorf("[Config] fallback to local cache success.")
localFile := response.ConfigFile
r.fireChangeEvent(localFile)
}
Expand Down

0 comments on commit aec9db3

Please sign in to comment.