Skip to content

Commit 748cc9d

Browse files
committed
Fixing Endpoint passed to StreamSystem
1 parent a2e06bf commit 748cc9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

RabbitMQ.Stream.Client/StreamSystem.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@ public static async Task<StreamSystem> Create(StreamSystemConfig config, ILogger
6666
{
6767
try
6868
{
69-
var client = await Client.Create(clientParams with { Endpoint = endPoint }, logger)
69+
var paramsWithEndPoint = clientParams with { Endpoint = endPoint };
70+
var client = await Client.Create(paramsWithEndPoint, logger)
7071
.ConfigureAwait(false);
7172
if (!client.IsClosed)
7273
{
7374
logger?.LogDebug("Client connected to {@EndPoint}", endPoint);
74-
return new StreamSystem(clientParams, client, logger);
75+
return new StreamSystem(paramsWithEndPoint, client, logger);
7576
}
7677
}
7778
catch (Exception e)

0 commit comments

Comments
 (0)