Skip to content

Commit 58f5fa5

Browse files
GODRIVER-3419 Mark spawnConnection as TODO
1 parent f3d3a2e commit 58f5fa5

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

x/mongo/driver/topology/pool.tmp.go

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,7 @@ import (
66
)
77

88
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
9+
// TODO
2310
}
2411

2512
// hasSpace checks if the pool has space for a new connection.

0 commit comments

Comments
 (0)