fix map key

This commit is contained in:
Anatoly Karlov 2023-08-17 09:33:02 +03:00
parent 448d2e910c
commit d2697c2282

View File

@ -24,7 +24,7 @@ public class WalletBalancesService {
public void registerMetrics() {
var walletsBalancesDataByInterval = openSearchService.getWalletsBalancesDataByInterval();
for (var walletBalanceData : walletsBalancesDataByInterval) {
var id = walletBalanceData.getWallet().getId();
var id = walletBalanceData.getWallet().getId() + "." + walletBalanceData.getWallet().getBalance().getCurrency();
if (!walletBalancesAggregatesMap.containsKey(id)) {
var gauge = Gauge.builder(
Metric.WALLET_BALANCES_AMOUNT.getName(),