mirror of
https://github.com/yusing/godoxy.git
synced 2025-08-02 06:50:56 +00: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),
|
DisplayNames: make(ReferenceDisplayNameMap),
|
||||||
IconList: []string{},
|
IconList: []string{},
|
||||||
}
|
}
|
||||||
// err := utils.LoadJSONIfExist(common.IconListCachePath, iconsCache)
|
err := utils.LoadJSONIfExist(common.IconListCachePath, iconsCache)
|
||||||
// if err != nil {
|
if err != nil {
|
||||||
// logging.Error().Err(err).Msg("failed to load icon list cache config")
|
logging.Error().Err(err).Msg("failed to load icon list cache config")
|
||||||
// } else if len(iconsCache.IconList) > 0 {
|
} else if len(iconsCache.IconList) > 0 {
|
||||||
// logging.Info().
|
logging.Info().
|
||||||
// Int("icons", len(iconsCache.IconList)).
|
Int("icons", len(iconsCache.IconList)).
|
||||||
// Int("display_names", len(iconsCache.DisplayNames)).
|
Int("display_names", len(iconsCache.DisplayNames)).
|
||||||
// Msg("icon list cache loaded")
|
Msg("icon list cache loaded")
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func ListAvailableIcons() (*Cache, error) {
|
func ListAvailableIcons() (*Cache, error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue