mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Decrease delay for offer refreshing
This commit is contained in:
parent
513f07d58c
commit
d91f340146
1 changed files with 3 additions and 3 deletions
|
@ -503,10 +503,10 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
||||||
final ArrayList<OpenOffer> openOffersList = new ArrayList<>(openOffers);
|
final ArrayList<OpenOffer> openOffersList = new ArrayList<>(openOffers);
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
// we delay to avoid reaching throttle limits
|
// we delay to avoid reaching throttle limits
|
||||||
// roughly 1 offer per second
|
// roughly 2 offer2 per second
|
||||||
final int n = i;
|
final int n = i;
|
||||||
final long minDelay = i * 500 + 1;
|
final long minDelay = i * 250 + 1;
|
||||||
final long maxDelay = minDelay * 2 + 500;
|
final long maxDelay = minDelay * 2;
|
||||||
UserThread.runAfterRandomDelay(() -> {
|
UserThread.runAfterRandomDelay(() -> {
|
||||||
OpenOffer openOffer = openOffersList.get(n);
|
OpenOffer openOffer = openOffersList.get(n);
|
||||||
// we need to check if in the meantime the offer has been removed
|
// we need to check if in the meantime the offer has been removed
|
||||||
|
|
Loading…
Add table
Reference in a new issue