fix: Align from_url in utils.py to remove DB as a 2nd param
@@ -8,7 +8,7 @@ except ImportError:
HIREDIS_AVAILABLE = False
-def from_url(url, db=None, **kwargs):
+def from_url(url, **kwargs):
"""
Returns an active Redis client generated from the given database URL.
@@ -16,7 +16,7 @@ def from_url(url, db=None, **kwargs):
none is provided.
"""
from redis.client import Redis
- return Redis.from_url(url, db, **kwargs)
+ return Redis.from_url(url, **kwargs)
@contextmanager
