Skip to content

Commit c651fbe

Browse files
author
Thomas Reggi
committed
maintain direct connection
1 parent 9b6edb3 commit c651fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/sdam/topology_description.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class TopologyDescription {
151151
// update the actual server description
152152
serverDescriptions.set(address, serverDescription);
153153

154-
if (serverType === ServerType.Mongos) {
154+
if (serverType === ServerType.Mongos && this.s.options.directConnection === false) {
155155
return new TopologyDescription(
156156
TopologyType.Sharded,
157157
serverDescriptions,

0 commit comments

Comments
 (0)