mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 14:42:37 +01:00
codacy
This commit is contained in:
parent
8bd03d2689
commit
192a905231
3 changed files with 15 additions and 5 deletions
|
@ -55,7 +55,9 @@ public abstract class PriceProvider<T> implements SmartLifecycle, Supplier<T> {
|
|||
public final void start() {
|
||||
// do the initial refresh asynchronously
|
||||
UserThread.runAfter(() -> {
|
||||
try { refresh(); } catch (Throwable t) {
|
||||
try {
|
||||
refresh();
|
||||
} catch (Throwable t) {
|
||||
log.warn("initial refresh failed", t);
|
||||
}
|
||||
}, 1, TimeUnit.MILLISECONDS);
|
||||
|
|
|
@ -67,7 +67,9 @@ public class MempoolFeeRateProviderTest {
|
|||
|
||||
// Initialize provider
|
||||
dummyProvider.start();
|
||||
try { sleep(1000); } catch (InterruptedException e) { }
|
||||
try {
|
||||
sleep(1000);
|
||||
} catch (InterruptedException e) { }
|
||||
dummyProvider.stop();
|
||||
|
||||
return dummyProvider;
|
||||
|
@ -88,7 +90,9 @@ public class MempoolFeeRateProviderTest {
|
|||
|
||||
// Initialize provider
|
||||
dummyProvider.start();
|
||||
try { sleep(1000); } catch (InterruptedException e) { }
|
||||
try {
|
||||
sleep(1000);
|
||||
} catch (InterruptedException e) { }
|
||||
dummyProvider.stop();
|
||||
|
||||
return dummyProvider;
|
||||
|
|
|
@ -288,7 +288,9 @@ public class ExchangeRateServiceTest {
|
|||
|
||||
// Initialize provider
|
||||
dummyProvider.start();
|
||||
try { sleep(1000); } catch (InterruptedException e) { }
|
||||
try {
|
||||
sleep(1000);
|
||||
} catch (InterruptedException e) { }
|
||||
dummyProvider.stop();
|
||||
|
||||
return dummyProvider;
|
||||
|
@ -324,7 +326,9 @@ public class ExchangeRateServiceTest {
|
|||
|
||||
// Initialize provider
|
||||
dummyProvider.start();
|
||||
try { sleep(1000); } catch (InterruptedException e) { }
|
||||
try {
|
||||
sleep(1000);
|
||||
} catch (InterruptedException e) { }
|
||||
dummyProvider.stop();
|
||||
|
||||
return dummyProvider;
|
||||
|
|
Loading…
Add table
Reference in a new issue