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 f3d3a2e commit 58f5fa5Copy full SHA for 58f5fa5
x/mongo/driver/topology/pool.tmp.go
@@ -6,20 +6,7 @@ import (
6
)
7
8
func (p *pool) spawnConnection(ctx context.Context, w *wantConn, conn *connection) {
9
- //// Relase slot when done.
10
- //defer func() { <-p.sem }()
11
-
12
- //// Simulate connection setup delay
13
- //time.Sleep(1000 * time.Millisecond)
14
15
- //// Register new conenction
16
- //p.mu.Lock()
17
- //p.nextID++
18
- //conn := &conn{id: p.nextID}
19
- //p.conns[conn.id] = conn
20
- //p.mu.Unlock()
21
22
- //w.ready <- conn // Notify the waiting goroutine that the connection is ready
+ // TODO
23
}
24
25
// hasSpace checks if the pool has space for a new connection.
0 commit comments