Skip to content

Commit ea925ab

Browse files
committed
chore: format
1 parent bb4e334 commit ea925ab

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

RabbitMQ.AMQP.Client/Impl/AmqpConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class AmqpConnection : AbstractLifeCycle, IConnection
3838
internal readonly IConnectionSettings _connectionSettings;
3939
private readonly IMetricsReporter _metricsReporter;
4040
internal readonly AmqpSessionManagement _nativePubSubSessions;
41-
41+
4242
/// <summary>
4343
/// Publishers contains all the publishers created by the connection.
4444
/// Each connection can have multiple publishers.

RabbitMQ.AMQP.Client/Impl/AmqpConsumer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ private async Task ProcessMessages()
159159

160160
IContext context = new DeliveryContext(_receiverLink, nativeMessage, _unsettledMessageCounter);
161161
var amqpMessage = new AmqpMessage(nativeMessage);
162-
162+
163163
// TODO catch exceptions thrown by handlers,
164164
// then call exception handler?
165-
165+
166166
if (_configuration.Handler != null)
167167
{
168168
await _configuration.Handler(context, amqpMessage).ConfigureAwait(false);
@@ -176,7 +176,7 @@ private async Task ProcessMessages()
176176
{
177177
return;
178178
}
179-
179+
180180
Trace.WriteLine(TraceLevel.Error, $"{ToString()} Failed to process messages, {e}");
181181
// TODO this is where a Listener should get a closed event
182182
// See the ConsumerShouldBeClosedWhenQueueIsDeleted test

RabbitMQ.AMQP.Client/Impl/AmqpEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static Task<IEnvironment> CreateAsync(IConnectionSettings connectionSetti
3232

3333
public async Task<IConnection> CreateConnectionAsync(IConnectionSettings connectionSettings)
3434
{
35-
IConnection c = await AmqpConnection.CreateAsync(connectionSettings,_metricsReporter).ConfigureAwait(false);
35+
IConnection c = await AmqpConnection.CreateAsync(connectionSettings, _metricsReporter).ConfigureAwait(false);
3636
c.Id = Interlocked.Increment(ref _sequentialId);
3737
_connections.TryAdd(c.Id, c);
3838
c.ChangeState += (sender, previousState, currentState, failureCause) =>

RabbitMQ.AMQP.Client/Impl/AmqpPublisherBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public async Task<IPublisher> BuildAsync(CancellationToken cancellationToken = d
6969
{
7070
address = AddressBuilderHelper.AddressBuilder().Exchange(_exchange).Queue(_queue).Key(_key).Address();
7171
}
72-
72+
7373
AmqpPublisher publisher = new(_connection, address, _metricsReporter, _timeout);
7474

7575
// TODO pass cancellationToken

Tests/Consumer/ConsumerMetricsTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public async Task RecordMessageDeliverySuccessAndDuration()
4646

4747
await WhenTcsCompletes(tcs);
4848

49-
5049
var consumedMessagesMeasurements = messageConsumedCollector.GetMeasurementSnapshot();
5150
Assert.NotEmpty(consumedMessagesMeasurements);
5251
Assert.Equal(1, consumedMessagesMeasurements[0].Value);

Tests/IntegrationTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public abstract class IntegrationTest : IAsyncLifetime
3636
private readonly bool _setupConnectionAndManagement;
3737
protected readonly ConnectionSettingBuilder _connectionSettingBuilder;
3838

39-
4039
public IntegrationTest(ITestOutputHelper testOutputHelper,
4140
bool setupConnectionAndManagement = true)
4241
{
@@ -65,7 +64,7 @@ public virtual async Task InitializeAsync()
6564
_meterFactory = serviceProvider.GetRequiredService<IMeterFactory>();
6665
#endif
6766
_connectionSettings = _connectionSettingBuilder.Build();
68-
_connection = await AmqpConnection.CreateAsync(_connectionSettings,_metricsReporter);
67+
_connection = await AmqpConnection.CreateAsync(_connectionSettings, _metricsReporter);
6968
_management = _connection.Management();
7069
}
7170

0 commit comments

Comments
 (0)