mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 05:58:05 +01:00
Update variable names in recently refactored method
This commit is contained in:
@@ -205,11 +205,11 @@ public class CurrencyConversionManager implements Managed {
|
|||||||
|
|
||||||
private void updateCachedData(final String cacheKey, final Map<String, BigDecimal> data) {
|
private void updateCachedData(final String cacheKey, final Map<String, BigDecimal> data) {
|
||||||
cacheCluster.useCluster(connection -> {
|
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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user