Fix bug with using runPeriodically instead of runAfter for TradeStatistics

This commit is contained in:
Manfred Karrer 2016-07-29 23:18:36 +02:00
parent d2df11c76b
commit d3e63a4470
2 changed files with 2 additions and 2 deletions

View file

@ -221,7 +221,7 @@ public class TradeManager {
} }
// We start later to have better connectivity to the network // We start later to have better connectivity to the network
UserThread.runPeriodically(() -> publishTradeStatistics(tradesForStatistics), UserThread.runAfter(() -> publishTradeStatistics(tradesForStatistics),
30, TimeUnit.SECONDS); 30, TimeUnit.SECONDS);
pendingTradesInitialized.set(true); pendingTradesInitialized.set(true);

View file

@ -505,7 +505,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
// we delay to avoid reaching throttle limits // we delay to avoid reaching throttle limits
// roughly 4 offers per second // roughly 4 offers per second
long delay = 150; long delay = 300;
final long minDelay = (i + 1) * delay; final long minDelay = (i + 1) * delay;
final long maxDelay = (i + 2) * delay; final long maxDelay = (i + 2) * delay;
final OpenOffer openOffer = openOffersList.get(i); final OpenOffer openOffer = openOffersList.get(i);