From c2a0947398c35b0ab54d7069bf5b5a8063db6c1c Mon Sep 17 00:00:00 2001 From: John Dupuy Date: Sat, 4 Jan 2020 14:34:42 -0600 Subject: [PATCH] MongoConnect now defaults to "loose" --- src/mongopool.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mongopool.nim b/src/mongopool.nim index 4abfcb2..622ba9e 100644 --- a/src/mongopool.nim +++ b/src/mongopool.nim @@ -243,7 +243,7 @@ randomize() export errors type - MongoConnection = object + MongoConnection* = object id: int asocket: Socket requestId: int32 @@ -876,7 +876,7 @@ proc addConnection() {.gcsafe.} = return -proc connectMongoPool*(url: string, minConnections = 4, maxConnections = 20, loose=false) {.gcsafe.} = +proc connectMongoPool*(url: string, minConnections = 4, maxConnections = 20, loose=true) {.gcsafe.} = ## This procedure connects to the MongoDB database using the supplied ## `url` string. That URL should be in the form of: ##