Fix not using host and port from url

This commit is contained in:
Don Brown
2014-02-23 11:36:46 -08:00
parent ca538a08ce
commit 6dac5b6dad

View File

@@ -69,7 +69,7 @@ class Pool:
for i in range(poolsize): for i in range(poolsize):
connection_class = cls.get_connection_class() connection_class = cls.get_connection_class()
connection = yield from connection_class.create(host=host, port=port, db=db, username=username, connection = yield from connection_class.create(host=self._host, port=self._port, db=db, username=username,
password=password, loop=loop, password=password, loop=loop,
auto_reconnect=auto_reconnect) auto_reconnect=auto_reconnect)
self._connections.append(connection) self._connections.append(connection)