mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Remove delay for publishing
This version is intended to be deployed to a power user to actually try it out live as testing it with real conditions is very difficult.
This commit is contained in:
parent
24f53e0c01
commit
1049b7da77
1 changed files with 7 additions and 2 deletions
|
@ -893,9 +893,14 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
||||||
|
|
||||||
OpenOffer openOffer = list.remove(0);
|
OpenOffer openOffer = list.remove(0);
|
||||||
if (openOffers.contains(openOffer) && !openOffer.isDeactivated()) {
|
if (openOffers.contains(openOffer) && !openOffer.isDeactivated()) {
|
||||||
republishOffer(openOffer,
|
// TODO It is not clear yet if it is better for the node and the network to send out all add offer
|
||||||
|
// messages in one go or to spread it over a delay. With power users who have 100-200 offers that can have
|
||||||
|
// some significant impact to user experience and the network
|
||||||
|
republishOffer(openOffer, () -> processListForRepublishOffers(list));
|
||||||
|
|
||||||
|
/* republishOffer(openOffer,
|
||||||
() -> UserThread.runAfter(() -> processListForRepublishOffers(list),
|
() -> UserThread.runAfter(() -> processListForRepublishOffers(list),
|
||||||
30, TimeUnit.MILLISECONDS));
|
30, TimeUnit.MILLISECONDS));*/
|
||||||
} else {
|
} else {
|
||||||
// If the offer was removed in the meantime or if its deactivated we skip and call
|
// If the offer was removed in the meantime or if its deactivated we skip and call
|
||||||
// processListForRepublishOffers again with the list where we removed the offer already.
|
// processListForRepublishOffers again with the list where we removed the offer already.
|
||||||
|
|
Loading…
Add table
Reference in a new issue