Skip to content

Commit ff95bc5

Browse files
Travis Nickelsbording
authored andcommitted
Update async/await for createConnection
1 parent 6a95d77 commit ff95bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceControl.Transports.RabbitMQ/QueueLengthProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public async Task Execute(Action<IChannel> action, CancellationToken cancellatio
124124
{
125125
try
126126
{
127-
connection ??= connectionFactory.CreateConnection("queue length monitor");
127+
connection ??= await connectionFactory.CreateConnection("queue length monitor", cancellationToken: cancellationToken);
128128

129129
//Connection implements reconnection logic
130130
while (!connection.IsOpen)

0 commit comments

Comments
 (0)