Add a toString to FlowSessionImpl

This commit is contained in:
Mike Hearn 2017-10-26 16:22:57 +02:00 committed by Katelyn Baker
parent f2dfeb2d9f
commit d5088c600b

View File

@ -8,10 +8,7 @@ import net.corda.core.identity.Party
import net.corda.core.internal.FlowStateMachine
import net.corda.core.utilities.UntrustworthyData
class FlowSessionImpl(
override val counterparty: Party
) : FlowSession() {
class FlowSessionImpl(override val counterparty: Party) : FlowSession() {
internal lateinit var stateMachine: FlowStateMachine<*>
internal lateinit var sessionFlow: FlowLogic<*>
@ -39,5 +36,7 @@ class FlowSessionImpl(
override fun send(payload: Any) {
return stateMachine.send(counterparty, payload, sessionFlow)
}
override fun toString() = "Flow session with $counterparty"
}