We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64023a4 commit 9d296f5Copy full SHA for 9d296f5
x/mongo/driver/topology/pool.go
@@ -594,8 +594,8 @@ func (p *pool) createConnections(ctx context.Context, wg *sync.WaitGroup) {
594
595
// wait waits for there to be an available wantConn and for the pool to have space for a new
596
// connection. When the condition becomes true, it creates a new connection and returns the
597
- // waiting waiting wantConn and new connection. If the Context is cancelled or there are any
598
- // errrors, wait returns with "ok = false".
+ // waiting wantConn and new connection. If the Context is cancelled or there are any
+ // errors, wait returns with "ok = false".
599
wait := func() (*wantConn, *connection, bool) {
600
p.connsCond.L.Lock()
601
defer p.connsCond.L.Unlock()
0 commit comments