Skip to content

Commit c1b25b2

Browse files
committed
fixup
1 parent 617dfd0 commit c1b25b2

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ public async Task<QueueDeclareOk> QueueDeclareAsync(QueueName queue, bool durabl
14021402
{
14031403
if (true == noWait)
14041404
{
1405-
if (queue == QueueName.Empty)
1405+
if (queue.IsEmpty)
14061406
{
14071407
throw new InvalidOperationException("noWait must not be used with a server-named queue.");
14081408
}

projects/RabbitMQ.Client/client/impl/ConsumerDispatching/ConsumerDispatcherChannelBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ public ValueTask HandleBasicDeliverAsync(ulong deliveryTag, bool redelivered,
106106
if (false == _disposed && false == _quiesce)
107107
{
108108
(IBasicConsumer consumer, _) = GetConsumerOrDefault(BasicDeliver.GetConsumerTag(method.Memory));
109-
var work = WorkStruct.CreateDeliver(consumer, deliveryTag, redelivered, basicProperties, method, body);
110-
return _writer.WriteAsync(work, cancellationToken);
109+
WorkStruct basicDeliverWork = WorkStruct.CreateDeliver(consumer, deliveryTag, redelivered, basicProperties, method, body);
110+
return _writer.WriteAsync(basicDeliverWork, cancellationToken);
111111
}
112112
else
113113
{

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,9 @@ public static RecordedConsumer WithNewQueueName(QueueName newQueueName, in Recor
106106
return new RecordedConsumer(old.Channel, old.Consumer, old.ConsumerTag, newQueueName, old.AutoAck, old.Exclusive, old.Arguments);
107107
}
108108

109-
public async Task<ConsumerTag> RecoverAsync(IChannel channel)
109+
public Task<ConsumerTag> RecoverAsync(IChannel channel)
110110
{
111-
string ct = await channel.BasicConsumeAsync(Queue, AutoAck, ConsumerTag, false, Exclusive, Arguments, Consumer)
112-
.ConfigureAwait(false);
113-
return new ConsumerTag(ct);
111+
return channel.BasicConsumeAsync(Queue, AutoAck, ConsumerTag, false, Exclusive, Arguments, Consumer);
114112
}
115113
}
116114
}

projects/Test/Common/IntegrationFixture.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,14 +450,16 @@ private string GenerateValidQueueOrExchangeName(string infix)
450450
{
451451
string name = $"{_testDisplayName}-{infix}-{Guid.NewGuid()}";
452452

453+
/*
454+
* Note: only necessary if doing strict name validation
453455
if (name.Length > 127)
454456
{
455457
name = name.Substring(0, 127);
456458
}
457-
458459
name = name.Replace('(', '_');
459460
name = name.Replace(')', '_');
460461
name = name.Replace(' ', '_');
462+
*/
461463

462464
return name;
463465
}

0 commit comments

Comments
 (0)