[bisq-network/bisq] Bundle messages at broadcast (#4436)
chimp1984
notifications at github.com
Mon Aug 31 15:28:09 UTC 2020
@chimp1984 commented on this pull request.
> + if (maxPossibleSuccessCases == numOfCompletedBroadcastsTarget - 1) {
+ broadcastRequests.stream()
+ .filter(broadcastRequest -> broadcastRequest.getListener() != null)
+ .map(Broadcaster.BroadcastRequest::getListener)
+ .forEach(listener -> listener.onNotSufficientlyBroadcast(numOfCompletedBroadcasts, numOfFailedBroadcasts));
+ } else if (timeoutTriggered && numOfCompletedBroadcasts < numOfCompletedBroadcastsTarget) {
+ // We did not reach resilience level and timeout prevents to reach it later
+ broadcastRequests.stream()
+ .filter(broadcastRequest -> broadcastRequest.getListener() != null)
+ .map(Broadcaster.BroadcastRequest::getListener)
+ .forEach(listener -> listener.onNotSufficientlyBroadcast(numOfCompletedBroadcasts, numOfFailedBroadcasts));
+ }
Will do...
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4436#discussion_r480206414
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200831/a2a988f9/attachment.html>
More information about the bisq-github
mailing list