Skip to content

Commit

Permalink
MongoConnect now defaults to "loose"
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnAD committed Jan 4, 2020
1 parent 5fa5465 commit c2a0947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mongopool.nim
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ randomize()
export errors

type
MongoConnection = object
MongoConnection* = object
id: int
asocket: Socket
requestId: int32
Expand Down Expand Up @@ -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:
##
Expand Down

0 comments on commit c2a0947

Please sign in to comment.