add set default if storage empty
This commit is contained in:
parent
9ccea7f635
commit
abfd27949f
2 changed files with 16 additions and 3 deletions
|
|
@ -98,6 +98,9 @@ func NewData(taoLogger *logger.TaoLogger, redisClient *RedisCli) *Data {
|
|||
// read latest version
|
||||
latest_version, _ := strconv.Atoi(initVersion)
|
||||
defaultForEachCountry = append(defaultForEachCountry, DefaultByCountry{CountryShortName: elem.CountryID, CountryLongName: elem.CountryName, DefaultFileVersion: latest_version})
|
||||
|
||||
// emit out latest version
|
||||
taoLogger.Log.Info("Latest version", zap.Any("country", elem.CountryID), zap.Any("version", latest_version))
|
||||
}
|
||||
|
||||
currentFileMap := make(map[string]string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue