Skip to content

Commit f490802

Browse files
GODRIVER-3793 Fix variable shadowing in rtt monitor (#2317)
1 parent 5ac5a1e commit f490802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/mongo/driver/topology/rtt_monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (r *rttMonitor) start() {
119119
defer ticker.Stop()
120120

121121
for {
122-
conn := r.cfg.createConnectionFn()
122+
conn = r.cfg.createConnectionFn()
123123
err := conn.connect(r.ctx)
124124

125125
// Add an RTT sample from the new connection handshake and start a runHellos() loop if we

0 commit comments

Comments
 (0)