Skip to content

Commit a5f655e

Browse files
committed
chore: format
1 parent 2f17f01 commit a5f655e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

projects/RabbitMQ.Client/ConnectionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ public async Task<IConnection> CreateConnectionAsync(IEndpointResolver endpointR
556556
}
557557
else
558558
{
559-
559+
560560
connectionActivity?.SetTag("messaging.rabbitmq.connection.automatic_recovery", false);
561561
IFrameHandler frameHandler = await endpointResolver.SelectOneAsync(CreateFrameHandlerAsync, cancellationToken)
562562
.ConfigureAwait(false);

projects/RabbitMQ.Client/IEndpointResolverExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace RabbitMQ.Client
3838
{
3939
public static class EndpointResolverExtensions
4040
{
41-
public static async Task<T> SelectOneAsync<T>(this IEndpointResolver resolver,
41+
public static async Task<T> SelectOneAsync<T>(this IEndpointResolver resolver,
4242
Func<AmqpTcpEndpoint, CancellationToken, Task<T>> selector, CancellationToken cancellationToken)
4343
{
4444
var exceptions = new List<Exception>();

projects/RabbitMQ.Client/Impl/RabbitMQActivitySource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static class RabbitMQActivitySource
7272
connectionActivity?.SetTag("messaging.rabbitmq.connection.is_reconnection", isReconnection);
7373
return connectionActivity;
7474
}
75-
75+
7676
internal static Activity? OpenTcpConnection()
7777
{
7878
Activity? connectionActivity =

projects/Test/Common/ActivityRecorder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static void HasRecordedException(this Activity activity, Exception except
144144
{
145145
activity.HasRecordedException(exception.GetType().ToString());
146146
}
147-
147+
148148
public static void HasRecordedException(this Activity activity, string exceptionTypeName)
149149
{
150150
var exceptionEvent = activity.Events.First();

projects/Test/Integration/TestConnectionFactory.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,9 @@ public async Task TestCreateConnectionAsync_TruncatesWhenClientNameIsLong_GH980(
440440
public async Task TestCreateConnectionRegisterAnActivity()
441441
{
442442
using ActivityRecorder connectionRecorder =
443-
new (RabbitMQActivitySource.ConnectionSourceName, "connection attempt");
443+
new(RabbitMQActivitySource.ConnectionSourceName, "connection attempt");
444444
using ActivityRecorder tcpConnectionRecorder =
445-
new (RabbitMQActivitySource.ConnectionSourceName, "tcp connection attempt");
445+
new(RabbitMQActivitySource.ConnectionSourceName, "tcp connection attempt");
446446
tcpConnectionRecorder.VerifyParent = false;
447447
ConnectionFactory cf = CreateConnectionFactory();
448448
await using IConnection conn = await cf.CreateConnectionAsync();
@@ -456,17 +456,17 @@ public async Task TestCreateConnectionRegisterAnActivity()
456456
public async Task TestCreateConnectionWithFailureRecordException()
457457
{
458458
using ActivityRecorder recorder =
459-
new (RabbitMQActivitySource.ConnectionSourceName, "connection attempt");
459+
new(RabbitMQActivitySource.ConnectionSourceName, "connection attempt");
460460
using ActivityRecorder tcpConnectionRecorder =
461-
new (RabbitMQActivitySource.ConnectionSourceName, "tcp connection attempt");
461+
new(RabbitMQActivitySource.ConnectionSourceName, "tcp connection attempt");
462462
tcpConnectionRecorder.VerifyParent = false;
463463
ConnectionFactory cf = CreateConnectionFactory();
464464
cf.AutomaticRecoveryEnabled = true;
465465
var unreachablePort = 1234;
466466
var ep = new AmqpTcpEndpoint("localhost", unreachablePort);
467467
var exception = await Assert.ThrowsAsync<BrokerUnreachableException>(() =>
468468
{
469-
return cf.CreateConnectionAsync(new List<AmqpTcpEndpoint> {ep});
469+
return cf.CreateConnectionAsync(new List<AmqpTcpEndpoint> { ep });
470470
});
471471
Activity connectionActivity = recorder.VerifyActivityRecordedOnce();
472472
connectionActivity.HasRecordedException(exception);

0 commit comments

Comments
 (0)