File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -361,13 +361,8 @@ export function uuidV4(): Buffer {
361361 */
362362export function maxWireVersion ( topologyOrServer ?: Connection | Topology | Server ) : number {
363363 if ( topologyOrServer ) {
364- if ( topologyOrServer . loadBalanced || topologyOrServer . serverApi ?. version ) {
365- // Since we do not have a monitor in the load balanced mode,
366- // we assume the load-balanced server is always pointed at the latest mongodb version.
367- // There is a risk that for on-prem deployments
368- // that don't upgrade immediately that this could alert to the
369- // application that a feature is available that is actually not.
370- // We also return the max supported wire version for serverAPI.
364+ if ( topologyOrServer . serverApi ?. version ) {
365+ // We return the max supported wire version for serverAPI.
371366 return MAX_SUPPORTED_WIRE_VERSION ;
372367 }
373368 if ( topologyOrServer . hello ) {
You can’t perform that action at this time.
0 commit comments