diff --git a/api/config.py b/api/config.py index 83466642d72099e6292646bd5f6e53e943cf8b4a..e9cc9295fbe8b1df0e2096a2dd76bbd67bf40f17 100644 --- a/api/config.py +++ b/api/config.py @@ -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))