Skip to content

Commit

Permalink
Rename three internal async methods to use Async suffix.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Sep 17, 2024
1 parent 830b1e4 commit 7337fad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions projects/RabbitMQ.Client/client/framing/Channel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected override Task<bool> DispatchCommandAsync(IncomingCommand cmd, Cancella
case ProtocolCommandId.ConnectionBlocked:
{
// Note: always returns true
return HandleConnectionBlocked(cmd, cancellationToken);
return HandleConnectionBlockedAsync(cmd, cancellationToken);
}
case ProtocolCommandId.ConnectionClose:
{
Expand All @@ -143,7 +143,7 @@ protected override Task<bool> DispatchCommandAsync(IncomingCommand cmd, Cancella
case ProtocolCommandId.ConnectionUnblocked:
{
// Note: always returns true
return HandleConnectionUnblocked(cancellationToken);
return HandleConnectionUnblockedAsync(cancellationToken);
}
default:
{
Expand Down
8 changes: 4 additions & 4 deletions projects/RabbitMQ.Client/client/impl/ChannelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -701,10 +701,10 @@ await ModelSendAsync(method, cancellationToken).
return true;
}

protected async Task<bool> HandleConnectionBlocked(IncomingCommand cmd, CancellationToken cancellationToken)
protected async Task<bool> HandleConnectionBlockedAsync(IncomingCommand cmd, CancellationToken cancellationToken)
{
string reason = new ConnectionBlocked(cmd.MethodSpan)._reason;
await Session.Connection.HandleConnectionBlocked(reason)
await Session.Connection.HandleConnectionBlockedAsync(reason)
.ConfigureAwait(false);
return true;
}
Expand Down Expand Up @@ -780,9 +780,9 @@ await k.HandleCommandAsync(cmd)
return true;
}

protected async Task<bool> HandleConnectionUnblocked(CancellationToken cancellationToken)
protected async Task<bool> HandleConnectionUnblockedAsync(CancellationToken cancellationToken)
{
await Session.Connection.HandleConnectionUnblocked()
await Session.Connection.HandleConnectionUnblockedAsync()
.ConfigureAwait(false);
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions projects/RabbitMQ.Client/client/impl/Connection.Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ internal void NotifyReceivedCloseOk()
_closed = true;
}

internal Task HandleConnectionBlocked(string reason)
internal Task HandleConnectionBlockedAsync(string reason)
{
if (!_connectionBlockedWrapper.IsEmpty)
{
Expand All @@ -63,7 +63,7 @@ internal Task HandleConnectionBlocked(string reason)
return Task.CompletedTask;
}

internal Task HandleConnectionUnblocked()
internal Task HandleConnectionUnblockedAsync()
{
if (!_connectionUnblockedWrapper.IsEmpty)
{
Expand Down

0 comments on commit 7337fad

Please sign in to comment.