From 6cd38feabeff497a17dcfa9ddd752e0c5494dba7 Mon Sep 17 00:00:00 2001 From: Qingyang Hu Date: Thu, 14 Dec 2023 12:15:17 -0500 Subject: [PATCH] minor changes. --- x/mongo/driver/topology/pool.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x/mongo/driver/topology/pool.go b/x/mongo/driver/topology/pool.go index 32bbab6151..50c7ed504e 100644 --- a/x/mongo/driver/topology/pool.go +++ b/x/mongo/driver/topology/pool.go @@ -1319,8 +1319,6 @@ func compact(arr []*connection) []*connection { type wantConn struct { ready chan struct{} - connOpts []ConnectionOption - mu sync.Mutex // Guards conn, err conn *connection err error @@ -1357,7 +1355,6 @@ func (w *wantConn) tryDeliver(conn *connection, err error) bool { panic("x/mongo/driver/topology: internal error: misuse of tryDeliver") } - w.connOpts = w.connOpts[:0] close(w.ready) return true @@ -1373,7 +1370,6 @@ func (w *wantConn) cancel(p *pool, err error) { w.mu.Lock() if w.conn == nil && w.err == nil { - w.connOpts = w.connOpts[:0] close(w.ready) // catch misbehavior in future delivery } conn := w.conn