Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
chore: skipping num holder calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
nemo83 committed Jul 15, 2024
1 parent 2b00ce4 commit 83836ab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ public List<TokenInfo> buildTokenInfoList(
StreamUtil.toMap(volumes24h, TokenVolume::getUnit, TokenVolume::getVolume);
var totalVolumeMap =
StreamUtil.toMap(totalVolumes, TokenVolume::getUnit, TokenVolume::getVolume);
var mapNumberHolder = multiAssetService.getMapNumberHolderByUnits(multiAssetUnits);
// FIXME: this is very slow
// var mapNumberHolder = multiAssetService.getMapNumberHolderByUnits(multiAssetUnits);
Map<String, Long> mapNumberHolder = Map.of();
// Clear unnecessary lists to free up memory to avoid OOM error
volumes24h.clear();
totalVolumes.clear();
Expand Down

0 comments on commit 83836ab

Please sign in to comment.