Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
popravich committed Aug 4, 2015
1 parent b19047f commit dd6cbaf
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions aioredis/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,13 @@ def _fill_free(self, *, override_min):
finally:
self._acquiring -= 1

@asyncio.coroutine
def _create_new_connection(self):
conn = yield from create_redis(self._address,
db=self._db,
password=self._password,
encoding=self._encoding,
commands_factory=self._factory,
loop=self._loop)
return conn
return create_redis(self._address,
db=self._db,
password=self._password,
encoding=self._encoding,
commands_factory=self._factory,
loop=self._loop)

@asyncio.coroutine
def _wakeup(self, closing_conn=None):
Expand Down

0 comments on commit dd6cbaf

Please sign in to comment.