chore: uncomment icon list cache code

This commit is contained in:
yusing 2025-04-17 14:44:45 +08:00
parent 1fe21b84eb
commit 41bef09be2

View file

@ -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) {