Skip to content

Commit

Permalink
Ensure the pool exists on creation too
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Oct 26, 2017
1 parent 82b731a commit 948d585
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions queries/tornado_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def __init__(self, uri=DEFAULT_URI,
self._pool_max_size = pool_max_size
self._pool_idle_ttl = pool_idle_ttl
self._uri = uri
self._ensure_pool_exists()

def _ensure_pool_exists(self):
"""Create the pool in the pool manager if it does not exist."""
Expand Down

0 comments on commit 948d585

Please sign in to comment.