Skip to content
Snippets Groups Projects
Commit 276eda90 authored by Ryan Sanford's avatar Ryan Sanford
Browse files

Add comments to clarify intent

Clarify the intent of both 'j' and 'connect' options of pymongo.MongoClient().

closes #123
parent 4afccf30
No related branches found
No related tags found
No related merge requests found
......@@ -75,10 +75,10 @@ if not os.path.exists(__config['persistent']['data_path']):
db = pymongo.MongoClient(
__config['persistent']['db_uri'],
j=True,
j=True, # Requests only return once write has hit the DB journal
connectTimeoutMS=__config['persistent']['db_connect_timeout'],
serverSelectionTimeoutMS=__config['persistent']['db_server_selection_timeout'],
connect=False,
connect=False, # Connect on first operation to avoid multi-threading related errors
).get_default_database()
log.debug(str(db))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment