Skip to content

Commit

Permalink
Update logohelper.go
Browse files Browse the repository at this point in the history
  • Loading branch information
giskook authored Oct 22, 2024
1 parent 9dbf54b commit 72d3518
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/tokenlogoinfo/logohelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (

func FillLogoInfos(ctx context.Context, redisStorage redisstorage.RedisStorage, transactionMap map[string][]*pb.Transaction) {
noCacheTokenMap := make(map[uint32][]string)
log.Infof("fill logo info %v ", transactionMap)
for k, v := range transactionMap {
chainId := utils.GetChainIdByNetworkId(uint(v[0].OriginalNetwork))
logoInfo, err := redisStorage.GetTokenLogoInfo(ctx, k)
Expand All @@ -31,7 +30,6 @@ func FillLogoInfos(ctx context.Context, redisStorage redisstorage.RedisStorage,
}
}
if len(noCacheTokenMap) == 0 {
log.Infof("no token need to use rpc to get logo")
return
}
logoParams := buildQueryLogoParams(noCacheTokenMap)
Expand Down

0 comments on commit 72d3518

Please sign in to comment.