Skip to content

Commit

Permalink
GODRIVER-1926 Fix Reason field in GetFailed CMAP events (mongodb#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
Divjot Arora authored and tsedgwick committed Jun 1, 2021
1 parent 1423eea commit 5d849fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/mongo/driver/topology/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ func (p *pool) get(ctx context.Context) (*connection, error) {
p.monitor.Event(&event.PoolEvent{
Type: event.GetFailed,
Address: p.address.String(),
Reason: reason,
Reason: event.ReasonConnectionErrored,
})
}
return nil, err
Expand Down

0 comments on commit 5d849fb

Please sign in to comment.