From f027c5355d0071b550fde70a89c5000a437113c5 Mon Sep 17 00:00:00 2001 From: Divjot Arora Date: Tue, 30 Mar 2021 15:07:08 -0400 Subject: [PATCH] GODRIVER-1926 Fix Reason field in GetFailed CMAP events (#627) --- x/mongo/driver/topology/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/mongo/driver/topology/pool.go b/x/mongo/driver/topology/pool.go index 5775ec3cc3..c96ea9add3 100644 --- a/x/mongo/driver/topology/pool.go +++ b/x/mongo/driver/topology/pool.go @@ -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