Skip to content

Commit c317b0c

Browse files
author
Divjot Arora
committed
GODRIVER-1926 Fix Reason field in GetFailed CMAP events (#627)
1 parent 2cfaff2 commit c317b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/mongo/driver/topology/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ func (p *pool) get(ctx context.Context) (*connection, error) {
443443
p.monitor.Event(&event.PoolEvent{
444444
Type: event.GetFailed,
445445
Address: p.address.String(),
446-
Reason: reason,
446+
Reason: event.ReasonConnectionErrored,
447447
})
448448
}
449449
return nil, err

0 commit comments

Comments
 (0)