Update variable names in recently refactored method

This commit is contained in:
Chris Eager
2025-10-07 11:35:51 -05:00
committed by Chris Eager
parent 9e1b716548
commit 73765fc4ec

View File

@@ -205,11 +205,11 @@ public class CurrencyConversionManager implements Managed {
private void updateCachedData(final String cacheKey, final Map<String, BigDecimal> data) {
cacheCluster.useCluster(connection -> {
final Map<String, String> sharedCoinGeckoValues = new HashMap<>();
final Map<String, String> sharedValues = new HashMap<>();
data.forEach((currency, conversionRate) -> sharedCoinGeckoValues.put(currency, conversionRate.toString()));
data.forEach((currency, conversionRate) -> sharedValues.put(currency, conversionRate.toString()));
connection.sync().hset(cacheKey, sharedCoinGeckoValues);
connection.sync().hset(cacheKey, sharedValues);
});
}