File tree Expand file tree Collapse file tree 1 file changed +16
-20
lines changed
projects/RabbitMQ.Client/Impl Expand file tree Collapse file tree 1 file changed +16
-20
lines changed Original file line number Diff line number Diff line change @@ -386,20 +386,18 @@ await _rpcSemaphore.WaitAsync(k.CancellationToken)
386
386
try
387
387
{
388
388
enqueued = Enqueue ( k ) ;
389
- if ( enqueued )
390
- {
391
- var method = new ChannelOpen ( ) ;
392
- await ModelSendAsync ( in method , k . CancellationToken )
393
- . ConfigureAwait ( false ) ;
394
389
395
- bool result = await k ;
396
- Debug . Assert ( result ) ;
390
+ var method = new ChannelOpen ( ) ;
391
+ await ModelSendAsync ( in method , k . CancellationToken )
392
+ . ConfigureAwait ( false ) ;
397
393
398
- if ( _publisherConfirmationsEnabled )
399
- {
400
- await ConfirmSelectAsync ( publisherConfirmationTrackingEnabled , cancellationToken )
401
- . ConfigureAwait ( false ) ;
402
- }
394
+ bool result = await k ;
395
+ Debug . Assert ( result ) ;
396
+
397
+ if ( _publisherConfirmationsEnabled )
398
+ {
399
+ await ConfirmSelectAsync ( publisherConfirmationTrackingEnabled , cancellationToken )
400
+ . ConfigureAwait ( false ) ;
403
401
}
404
402
}
405
403
finally
@@ -1752,15 +1750,13 @@ private async Task ConfirmSelectAsync(bool publisherConfirmationTrackingEnablefd
1752
1750
}
1753
1751
1754
1752
enqueued = Enqueue ( k ) ;
1755
- if ( enqueued )
1756
- {
1757
- var method = new ConfirmSelect ( false ) ;
1758
- await ModelSendAsync ( in method , k . CancellationToken )
1759
- . ConfigureAwait ( false ) ;
1760
1753
1761
- bool result = await k ;
1762
- Debug . Assert ( result ) ;
1763
- }
1754
+ var method = new ConfirmSelect ( false ) ;
1755
+ await ModelSendAsync ( in method , k . CancellationToken )
1756
+ . ConfigureAwait ( false ) ;
1757
+
1758
+ bool result = await k ;
1759
+ Debug . Assert ( result ) ;
1764
1760
1765
1761
return ;
1766
1762
}
You can’t perform that action at this time.
0 commit comments