File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -61,18 +61,18 @@ public async Task FlushOutgoingMessagesAsync()
6161 {
6262 if ( envelope . IsScheduledForLater ( DateTimeOffset . UtcNow ) )
6363 {
64- if ( envelope . Sender ! . SupportsNativeScheduledSend )
64+ if ( ! envelope . Sender ! . IsDurable )
6565 {
66- await sendEnvelopeAsync ( envelope ) ;
67- }
68- else if ( ! envelope . Sender ! . IsDurable )
69- {
70- Runtime . ScheduleLocalExecutionInMemory ( envelope . ScheduledTime ! . Value , envelope ) ;
71- }
72- else
73- {
74- await sendEnvelopeAsync ( envelope ) ;
66+ if ( envelope . Sender ! . SupportsNativeScheduledSend )
67+ {
68+ await sendEnvelopeAsync ( envelope ) ;
69+ }
70+ else
71+ {
72+ Runtime . ScheduleLocalExecutionInMemory ( envelope . ScheduledTime ! . Value , envelope ) ;
73+ }
7574 }
75+
7676 // If NullMessageStore, then we're calling a different Send method that is marking the message
7777 if ( Runtime . Storage is not NullMessageStore )
7878 {
You can’t perform that action at this time.
0 commit comments