Skip to content

Commit f664259

Browse files
committed
* Remove a lot of unused code
1 parent e5cd1a0 commit f664259

File tree

3 files changed

+19
-354
lines changed

3 files changed

+19
-354
lines changed

projects/RabbitMQ.Client/client/impl/AutorecoveringChannel.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,13 @@ public void Dispose()
248248
public ValueTask BasicAckAsync(ulong deliveryTag, bool multiple)
249249
=> InnerChannel.BasicAckAsync(deliveryTag, multiple);
250250

251-
public Task BasicCancelAsync(string consumerTag, bool noWait)
251+
public async Task BasicCancelAsync(string consumerTag, bool noWait)
252252
{
253253
ThrowIfDisposed();
254-
_connection.DeleteRecordedConsumer(consumerTag, recordedEntitiesSemaphoreHeld: false);
255-
return _innerChannel.BasicCancelAsync(consumerTag, noWait);
254+
await _connection.DeleteRecordedConsumerAsync(consumerTag, recordedEntitiesSemaphoreHeld: false)
255+
.ConfigureAwait(false);
256+
await _innerChannel.BasicCancelAsync(consumerTag, noWait)
257+
.ConfigureAwait(false);
256258
}
257259

258260
public async Task<string> BasicConsumeAsync(string queue, bool autoAck, string consumerTag, bool noLocal, bool exclusive,

0 commit comments

Comments
 (0)