Skip to content

Commit

Permalink
Add Note
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Oct 3, 2024
1 parent ec993b3 commit 857cbde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions projects/RabbitMQ.Client/Impl/ChannelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1841,6 +1841,11 @@ await _confirmSemaphore.WaitAsync(cancellationToken)
}
else
{
/*
* Note:
* In the case of `basic.return`, the TCS will have been handled and removed by HandleBasicReturn()
* RabbitMQ still sends `basic.ack`, so the TCS will not be in the dict, hence, TryGetValue here
*/
if (_confirmsTaskCompletionSources.TryGetValue(deliveryTag, out TaskCompletionSource<bool>? tcs))
{
tcs.SetResult(isAck);
Expand Down

0 comments on commit 857cbde

Please sign in to comment.