-
Notifications
You must be signed in to change notification settings - Fork 46
fix url pass #289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix url pass #289
Conversation
@@ -84,6 +84,17 @@ def test_search_index_from_existing(client, index): | |||
assert index2.schema == index.schema | |||
|
|||
|
|||
def test_search_index_from_existing_url(redis_url, index): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most excellent
@@ -358,7 +358,7 @@ def _redis_client(self) -> Optional[redis.Redis]: | |||
with self._lock: | |||
if self.__redis_client is None: | |||
self.__redis_client = RedisConnectionFactory.get_redis_connection( | |||
url=self._redis_url, | |||
redis_url=self._redis_url, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
personally I think we should always use redis_url vs url because it's more specific and that's what we tend to say when we do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup
There was a bug in from_existing where it was not passing the redis_url correctly because the var is named

url