mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
CORDA-3393: Lazy load MessageDeduplicationHandler.flowId
(#5679)
CORDA-3393: Lazy load `MessageDeduplicationHandler.flowId` (#5679)
This commit is contained in:
commit
86f1f9e371
@ -425,7 +425,7 @@ class P2PMessagingClient(val config: NodeConfiguration,
|
|||||||
private inner class MessageDeduplicationHandler(val artemisMessage: ClientMessage, override val receivedMessage: ReceivedMessage) : DeduplicationHandler, ExternalEvent.ExternalMessageEvent {
|
private inner class MessageDeduplicationHandler(val artemisMessage: ClientMessage, override val receivedMessage: ReceivedMessage) : DeduplicationHandler, ExternalEvent.ExternalMessageEvent {
|
||||||
override val externalCause: ExternalEvent
|
override val externalCause: ExternalEvent
|
||||||
get() = this
|
get() = this
|
||||||
override val flowId: StateMachineRunId = StateMachineRunId.createRandom()
|
override val flowId: StateMachineRunId by lazy { StateMachineRunId.createRandom() }
|
||||||
override val deduplicationHandler: MessageDeduplicationHandler
|
override val deduplicationHandler: MessageDeduplicationHandler
|
||||||
get() = this
|
get() = this
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user