Skip to content

Commit

Permalink
ignore cache content (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
binbin0325 authored Jan 27, 2022
1 parent 844e4c3 commit 2ca1b69
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clients/config_client/config_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,7 @@ func (client *ConfigClient) ListenConfig(param vo.ConfigParam) (err error) {
content string
md5Str string
)
content, fileErr := cache.ReadConfigFromFile(key, client.configCacheDir)
if fileErr != nil {
logger.Errorf("[cache.ReadConfigFromFile] error: %+v", fileErr)
}
content, _ = cache.ReadConfigFromFile(key, client.configCacheDir)
if len(content) > 0 {
md5Str = util.Md5(content)
}
Expand Down

0 comments on commit 2ca1b69

Please sign in to comment.