mirror of
https://github.com/corda/corda.git
synced 2025-01-02 19:26:47 +00:00
node: fix IRSSimulation so it doesn't rely on buffering
This commit is contained in:
parent
5323eb1073
commit
ccf362bb8a
@ -105,8 +105,8 @@ class IRSSimulation(networkSendManuallyPumped: Boolean, runAsync: Boolean, laten
|
|||||||
|
|
||||||
val retFuture = SettableFuture.create<Unit>()
|
val retFuture = SettableFuture.create<Unit>()
|
||||||
val futA = node1.smm.add("floater", sideA)
|
val futA = node1.smm.add("floater", sideA)
|
||||||
|
val futB = node2.smm.add("fixer", sideB)
|
||||||
executeOnNextIteration += {
|
executeOnNextIteration += {
|
||||||
val futB = node2.smm.add("fixer", sideB)
|
|
||||||
Futures.allAsList(futA, futB) success {
|
Futures.allAsList(futA, futB) success {
|
||||||
retFuture.set(null)
|
retFuture.set(null)
|
||||||
} failure { throwable ->
|
} failure { throwable ->
|
||||||
|
Loading…
Reference in New Issue
Block a user