Skip to content

Commit

Permalink
Use double-l cancelation
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez committed Nov 1, 2023
1 parent c025b1b commit 1443d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/mongo/driver/topology/rtt_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type rttMonitor struct {
mu sync.RWMutex // mu guards samples, offset, minRTT, averageRTT, and averageRTTSet

// connMu guards connecting and disconnecting. This is necessary since
// disconnecting will await the cancelation of a started connection. The
// disconnecting will await the cancellation of a started connection. The
// use case for rttMonitor.connect needs to be goroutine safe.
connMu sync.Mutex
samples []time.Duration
Expand Down

0 comments on commit 1443d97

Please sign in to comment.