diff options
| author | Andy McCurdy <andy@andymccurdy.com> | 2020-01-27 17:21:18 -0800 |
|---|---|---|
| committer | Andy McCurdy <andy@andymccurdy.com> | 2020-01-30 14:29:59 -0800 |
| commit | b5436ce158c75bed844ca75afbfd30441eacd82b (patch) | |
| tree | bec212ea97d75aaaf8c109a7169d93dc10383479 | |
| parent | 597e8e58cbc10e29179d1578dd8caa1256202d18 (diff) | |
| download | redis-py-b5436ce158c75bed844ca75afbfd30441eacd82b.tar.gz | |
forgot blocking=False arg
| -rwxr-xr-x | redis/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py index 0e6fa37..ad69bf0 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -1141,7 +1141,7 @@ class ConnectionPool(object): timeout_at = time() + 5 acquired = False while time() < timeout_at: - acquired = self._fork_lock.acquire() + acquired = self._fork_lock.acquire(blocking=False) if acquired: break if not acquired: |
