Update __init__ of ThreadedConnectionPool

This commit is contained in:
Shubham Sharma 2021-09-21 22:48:58 +05:30
parent 766f06f290
commit 5a8989e0e7

View File

@ -174,9 +174,9 @@ class ThreadedConnectionPool(AbstractConnectionPool):
of psycopg2 of psycopg2
""" """
super().__init__(minconn, maxconn, *args, **kwargs)
import threading import threading
AbstractConnectionPool.__init__(
self, minconn, maxconn, *args, **kwargs)
self._lock = threading.Lock() self._lock = threading.Lock()
def getconn(self, key=None): def getconn(self, key=None):