Skip to content

Commit

Permalink
GODRIVER-1926 Fix Reason field in GetFailed CMAP events (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
Divjot Arora committed Mar 30, 2021
1 parent 2cfaff2 commit c317b0c
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 c317b0c

Please sign in to comment.