Skip to content

Commit a15c1f8

Browse files
committed
Rename to fix conflict with event.
1 parent ea6fdcc commit a15c1f8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ protected ValueTask ModelSendAsync<TMethod, THeader>(in TMethod method, in THead
459459
}
460460

461461
[MethodImpl(MethodImplOptions.AggressiveInlining)]
462-
protected ValueTask FlowControlAsync(CancellationToken cancellationToken)
462+
protected ValueTask EnforceFlowControlAsync(CancellationToken cancellationToken)
463463
{
464464
if (_flowControlBlock.IsSet)
465465
{
@@ -991,22 +991,22 @@ await _confirmSemaphore.WaitAsync(cancellationToken)
991991
BasicProperties? props = PopulateActivityAndPropagateTraceId(basicProperties, sendActivity);
992992
if (props is null)
993993
{
994-
await FlowControlAsync(cancellationToken)
994+
await EnforceFlowControlAsync(cancellationToken)
995995
.ConfigureAwait(false);
996996
await ModelSendAsync(in cmd, in basicProperties, body, cancellationToken)
997997
.ConfigureAwait(false);
998998
}
999999
else
10001000
{
1001-
await FlowControlAsync(cancellationToken)
1001+
await EnforceFlowControlAsync(cancellationToken)
10021002
.ConfigureAwait(false);
10031003
await ModelSendAsync(in cmd, in props, body, cancellationToken)
10041004
.ConfigureAwait(false);
10051005
}
10061006
}
10071007
else
10081008
{
1009-
await FlowControlAsync(cancellationToken)
1009+
await EnforceFlowControlAsync(cancellationToken)
10101010
.ConfigureAwait(false);
10111011
await ModelSendAsync(in cmd, in basicProperties, body, cancellationToken)
10121012
.ConfigureAwait(false);
@@ -1076,22 +1076,22 @@ await _confirmSemaphore.WaitAsync(cancellationToken)
10761076
BasicProperties? props = PopulateActivityAndPropagateTraceId(basicProperties, sendActivity);
10771077
if (props is null)
10781078
{
1079-
await FlowControlAsync(cancellationToken)
1079+
await EnforceFlowControlAsync(cancellationToken)
10801080
.ConfigureAwait(false);
10811081
await ModelSendAsync(in cmd, in basicProperties, body, cancellationToken)
10821082
.ConfigureAwait(false);
10831083
}
10841084
else
10851085
{
1086-
await FlowControlAsync(cancellationToken)
1086+
await EnforceFlowControlAsync(cancellationToken)
10871087
.ConfigureAwait(false);
10881088
await ModelSendAsync(in cmd, in props, body, cancellationToken)
10891089
.ConfigureAwait(false);
10901090
}
10911091
}
10921092
else
10931093
{
1094-
await FlowControlAsync(cancellationToken)
1094+
await EnforceFlowControlAsync(cancellationToken)
10951095
.ConfigureAwait(false);
10961096
await ModelSendAsync(in cmd, in basicProperties, body, cancellationToken)
10971097
.ConfigureAwait(false);

0 commit comments

Comments
 (0)