Skip to content

Commit

Permalink
Merge pull request #1 from dbeneker/fix/close_mongo_con
Browse files Browse the repository at this point in the history
close mongo connection
  • Loading branch information
Hermsi1337 authored May 21, 2019
2 parents adeefb1 + 9fa7f95 commit 067948f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions probe/probe_mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func (m *mongoDBProbe) Exec() error {
defer cancel()

err = client.Connect(ctx)
defer client.Disconnect(ctx)
if err != nil {
return err
}
Expand Down

0 comments on commit 067948f

Please sign in to comment.