mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
Add 2 second delay to RatesService
This commit is contained in:
parent
6f4d37d3ff
commit
da1626070b
1 changed files with 2 additions and 0 deletions
|
@ -355,6 +355,8 @@ public class AppServices {
|
||||||
ExchangeSource.RatesService ratesService = new ExchangeSource.RatesService(
|
ExchangeSource.RatesService ratesService = new ExchangeSource.RatesService(
|
||||||
exchangeSource == null ? DEFAULT_EXCHANGE_SOURCE : exchangeSource,
|
exchangeSource == null ? DEFAULT_EXCHANGE_SOURCE : exchangeSource,
|
||||||
currency == null ? DEFAULT_FIAT_CURRENCY : currency);
|
currency == null ? DEFAULT_FIAT_CURRENCY : currency);
|
||||||
|
//Delay startup on first run
|
||||||
|
ratesService.setDelay(Duration.seconds(CONNECTION_DELAY_SECS));
|
||||||
ratesService.setPeriod(Duration.seconds(RATES_PERIOD_SECS));
|
ratesService.setPeriod(Duration.seconds(RATES_PERIOD_SECS));
|
||||||
ratesService.setRestartOnFailure(true);
|
ratesService.setRestartOnFailure(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue