jet another silly fix

This commit is contained in:
djmil 2023-11-28 23:14:07 +01:00
parent 1cb0a45e51
commit e933a97c1f

View File

@ -58,10 +58,9 @@ public class CommitTrx implements SubFlow<SecureHash> {
* notarises the transaction and persists the transaction to each party's vault. * notarises the transaction and persists the transaction to each party's vault.
*/ */
FlowSession counterpartySession = flowMessaging.initiateFlow(this.counterpartyName); List<FlowSession> sessionsList = (this.custodyName != null)
FlowSession custodySession = (this.custodyName != null) ? flowMessaging.initiateFlow(this.custodyName) : null; ? Arrays.asList(flowMessaging.initiateFlow(this.counterpartyName), flowMessaging.initiateFlow(this.custodyName))
: Arrays.asList(flowMessaging.initiateFlow(this.counterpartyName);
List<FlowSession> sessionsList = Arrays.asList(counterpartySession, custodySession);
System.out.println("sessionsList size " + sessionsList.size()); System.out.println("sessionsList size " + sessionsList.size());