Reenable retry wrapper on database operations

This commit is contained in:
Joseph Schorr 2018-07-17 11:42:08 -04:00
parent d3d9cca182
commit d15dcae505

View file

@ -306,9 +306,8 @@ def _db_from_url(url, db_kwargs, connect_timeout=DEFAULT_DB_CONNECT_TIMEOUT):
db_kwargs.pop('stale_timeout', None)
db_kwargs.pop('max_connections', None)
# wrapped_driver = _wrap_for_retry(driver)
# return wrapped_driver(parsed_url.database, **db_kwargs)
return driver(parsed_url.database, **db_kwargs)
wrapped_driver = _wrap_for_retry(driver)
return wrapped_driver(parsed_url.database, **db_kwargs)
def configure(config_object):