From dd6cbaff7ff008e588db5e6cf59be8048d63c102 Mon Sep 17 00:00:00 2001 From: Alexey Popravka Date: Tue, 4 Aug 2015 10:44:41 +0300 Subject: [PATCH] tiny fix --- aioredis/pool.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/aioredis/pool.py b/aioredis/pool.py index 6850f06d5..fbc18ed13 100644 --- a/aioredis/pool.py +++ b/aioredis/pool.py @@ -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):