mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-14 09:59:26 -04:00
fix wrong timer behaviour
This commit is contained in:
parent
7c3732c0e5
commit
db128c6815
4 changed files with 14 additions and 10 deletions
|
@ -135,8 +135,9 @@ public class ArbitratorManager {
|
|||
}
|
||||
|
||||
// re-publish periodically
|
||||
republishArbitratorExecutor = Utilities.getScheduledThreadPoolExecutor("", 1, 5, 5);
|
||||
republishArbitratorExecutor.schedule(() -> republishArbitrator(), Arbitrator.TTL / 2, TimeUnit.MILLISECONDS);
|
||||
republishArbitratorExecutor = Utilities.getScheduledThreadPoolExecutor("republishArbitrator", 1, 5, 5);
|
||||
long delay = Arbitrator.TTL / 2;
|
||||
republishArbitratorExecutor.scheduleAtFixedRate(() -> republishArbitrator(), delay, delay, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
applyArbitrators();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue