mirror of https://github.com/rq/rq.git
Use `redis.from_url()` for greater compatibility.
This lets us keep the redis-py version requirement back at 2.4.13.
This commit is contained in:
parent
eb00f69ced
commit
e90efc254b
|
@ -47,7 +47,7 @@ def setup_default_arguments(args, settings):
|
|||
|
||||
def setup_redis(args):
|
||||
if args.url is not None:
|
||||
redis_conn = redis.Redis.from_url(args.url, db=args.db)
|
||||
redis_conn = redis.from_url(args.url, db=args.db)
|
||||
else:
|
||||
redis_conn = redis.Redis(host=args.host, port=args.port, db=args.db,
|
||||
password=args.password)
|
||||
|
|
Loading…
Reference in New Issue