Strip additional hosts in the connection string
This commit is contained in:
1 parent
5626414f2d
commit
26845c7eb4
2 files changed
+17
-1
No files matched your search
@@ -30,6 +30,14 @@ class Connection:
|
||||
connection = cls()
|
||||
|
||||
connection.host = host
|
||||
|
||||
# strip any additional hosts in the connection string for now
|
||||
try:
|
||||
if "," in port:
|
||||
port = port[:port.find(',')]
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
connection.port = port
|
||||
connection._loop = loop
|
||||
connection._retry_interval = .5
|
||||
|
||||
Reference in new issue
Block a user