Skip to content

Commit 95c0697

Browse files
committed
pass in a throwaway command-name to ConnectionPool.get_connection()
Since we're not actually using the connection for anything other than to simply get its host and port.
1 parent 7e3d779 commit 95c0697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyres/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _set_redis(self, server):
148148
self.host = server.host
149149
self.port = server.port
150150
else:
151-
connection = server.connection_pool.get_connection()
151+
connection = server.connection_pool.get_connection('_')
152152
self.host = connection.host
153153
self.port = connection.port
154154
self.dsn = '%s:%s' % (self.host, self.port)

0 commit comments

Comments
 (0)