Permalink
Browse files

Removed a bit of cruft from redis backend.

  • Loading branch information...
1 parent c9aa847 commit d36ee320ae23a8d35de4a25f3d768c95f46ddfda @jezdez jezdez committed Aug 12, 2010
Showing with 2 additions and 5 deletions.
  1. +2 −5 queues/backends/redisd.py
@@ -40,8 +40,8 @@
def _get_connection(host=host, port=port, db=DB, timeout=TIMEOUT):
kwargs = {'host' : host, 'port' : port}
- if DB:
- kwargs['db'] = DB
+ if db:
+ kwargs['db'] = db
if timeout:
kwargs['timeout'] = timeout
return redis.Redis(**kwargs)
@@ -51,9 +51,6 @@ def __init__(self, name):
try:
self.name = name
self.backend = 'redis'
- kwargs = {'host' : host, 'port' : int(port)}
- if DB:
- kwargs['db'] = DB
self._connection = _get_connection()
except redis.RedisError, e:
raise QueueException, "%s" % e

0 comments on commit d36ee32

Please sign in to comment.