Skip to content

Commit 0a0c283

Browse files
surajptlashtul
andauthored
fix connection (#82)
cloud connection should be required password to connect Co-authored-by: Ariel Shtul <ashtul@gmail.com>
1 parent 28ec721 commit 0a0c283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisearch/auto_complete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class AutoCompleter(object):
6767
FUZZY = 'FUZZY'
6868
WITHPAYLOADS = 'WITHPAYLOADS'
6969

70-
def __init__(self, key, host='localhost', port=6379, conn = None):
70+
def __init__(self, key, host='localhost', port=6379, conn = None, password=None):
7171
"""
7272
Create a new AutoCompleter client for the given key, and optional host and port
7373
@@ -76,7 +76,7 @@ def __init__(self, key, host='localhost', port=6379, conn = None):
7676

7777
self.key = key
7878
self.redis = conn if conn is not None else Redis(
79-
connection_pool = ConnectionPool(host=host, port=port))
79+
connection_pool = ConnectionPool(host=host, port=port, password=password))
8080

8181
def add_suggestions(self, *suggestions, **kwargs):
8282
"""

0 commit comments

Comments
 (0)