Skip to content

Commit 837ca58

Browse files
committed
CSHARP-1888: Back out part of a change that got inadvertently backported during cherry picking.
1 parent ff66a64 commit 837ca58

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/MongoDB.Driver.Core/Core/Configuration/ClusterBuilder.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,6 @@ private ServerFactory CreateServerFactory()
252252

253253
private IServerMonitorFactory CreateServerMonitorFactory()
254254
{
255-
var serverMonitorConnectionSettings = _connectionSettings
256-
.With(authenticators: new IAuthenticator[] { });
257-
258255
var heartbeatConnectTimeout = _tcpStreamSettings.ConnectTimeout;
259256
if (heartbeatConnectTimeout == TimeSpan.Zero || heartbeatConnectTimeout == Timeout.InfiniteTimeSpan)
260257
{
@@ -275,7 +272,7 @@ private IServerMonitorFactory CreateServerMonitorFactory()
275272
var serverMonitorStreamFactory = CreateTcpStreamFactory(serverMonitorTcpStreamSettings);
276273

277274
var serverMonitorConnectionFactory = new BinaryConnectionFactory(
278-
serverMonitorConnectionSettings,
275+
_connectionSettings,
279276
serverMonitorStreamFactory,
280277
new EventAggregator());
281278

0 commit comments

Comments
 (0)