From 9fa7f95e3d9b41a79ad0c0aabde427f5929b91c3 Mon Sep 17 00:00:00 2001 From: Daniel Beneker Date: Tue, 21 May 2019 13:17:51 +0200 Subject: [PATCH] close mongo connection --- probe/probe_mongodb.go | 1 + 1 file changed, 1 insertion(+) diff --git a/probe/probe_mongodb.go b/probe/probe_mongodb.go index 54933ce..f8087e3 100644 --- a/probe/probe_mongodb.go +++ b/probe/probe_mongodb.go @@ -50,6 +50,7 @@ func (m *mongoDBProbe) Exec() error { defer cancel() err = client.Connect(ctx) + defer client.Disconnect(ctx) if err != nil { return err }