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 Mohammad Fahim Abrar committed Mar 17, 2022
1 parent be4b29f commit f027c53
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 @@ -467,7 +467,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 f027c53

Please sign in to comment.