Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
phucledien committed May 24, 2024
2 parents 5ca785d + 4094923 commit 1338ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/krystal/krystal.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (k *Krystal) doNetwork(address string, data BalanceTokenResponse) (*Balance
// if error occurs -> ignore
bytes, _ := json.Marshal(&data)
k.logger.Infof("cache data krystal-service, key: %s", tokenBalanceKey)
k.cache.Set(tokenBalanceKey+"-"+strings.ToLower(address), string(bytes), 7*24*time.Hour)
k.cache.Set(tokenBalanceKey+"-"+strings.ToLower(address), string(bytes), 15*time.Minute)

return &data, nil
}
Expand Down

0 comments on commit 1338ac9

Please sign in to comment.