Skip to content

Commit 9d296f5

Browse files
Apply suggestions from code review
Co-authored-by: Kevin Albertson <[email protected]>
1 parent 64023a4 commit 9d296f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x/mongo/driver/topology/pool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,8 @@ func (p *pool) createConnections(ctx context.Context, wg *sync.WaitGroup) {
594594

595595
// wait waits for there to be an available wantConn and for the pool to have space for a new
596596
// 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".
597+
// waiting wantConn and new connection. If the Context is cancelled or there are any
598+
// errors, wait returns with "ok = false".
599599
wait := func() (*wantConn, *connection, bool) {
600600
p.connsCond.L.Lock()
601601
defer p.connsCond.L.Unlock()

0 commit comments

Comments
 (0)