mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
chore: uncomment icon list cache code
This commit is contained in:
parent
1fe21b84eb
commit
41bef09be2
1 changed files with 9 additions and 9 deletions
|
@ -60,15 +60,15 @@ func InitIconListCache() {
|
|||
DisplayNames: make(ReferenceDisplayNameMap),
|
||||
IconList: []string{},
|
||||
}
|
||||
// err := utils.LoadJSONIfExist(common.IconListCachePath, iconsCache)
|
||||
// if err != nil {
|
||||
// logging.Error().Err(err).Msg("failed to load icon list cache config")
|
||||
// } else if len(iconsCache.IconList) > 0 {
|
||||
// logging.Info().
|
||||
// Int("icons", len(iconsCache.IconList)).
|
||||
// Int("display_names", len(iconsCache.DisplayNames)).
|
||||
// Msg("icon list cache loaded")
|
||||
// }
|
||||
err := utils.LoadJSONIfExist(common.IconListCachePath, iconsCache)
|
||||
if err != nil {
|
||||
logging.Error().Err(err).Msg("failed to load icon list cache config")
|
||||
} else if len(iconsCache.IconList) > 0 {
|
||||
logging.Info().
|
||||
Int("icons", len(iconsCache.IconList)).
|
||||
Int("display_names", len(iconsCache.DisplayNames)).
|
||||
Msg("icon list cache loaded")
|
||||
}
|
||||
}
|
||||
|
||||
func ListAvailableIcons() (*Cache, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue