Skip to content

Commit 768bf6d

Browse files
committed
GODRIVER-3648 Make server selection block on topology updates.
1 parent 4d76367 commit 768bf6d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

x/mongo/driver/topology/topology.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ func (t *Topology) selectServerFromSubscription(
694694
case <-ctx.Done():
695695
return nil, ServerSelectionError{Wrapped: ctx.Err(), Desc: current}
696696
case current = <-subscriptionCh:
697-
default:
698697
}
699698

700699
suitable, err := t.selectServerFromDescription(current, srvSelector)

0 commit comments

Comments
 (0)