Skip to content

Commit 2672fce

Browse files
committed
Fixed unused arguments
1 parent 2ad005a commit 2672fce

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

redis/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def _send_command_parse_response(self, conn, command_name, *args, **options):
636636
conn.send_command(*args, **options)
637637
return self.parse_response(conn, command_name, **options)
638638

639-
def _close_connection(self, conn, error, *args) -> None:
639+
def _close_connection(self, conn) -> None:
640640
"""
641641
Close the connection before retrying.
642642
@@ -666,7 +666,7 @@ def _execute_command(self, *args, **options):
666666
lambda: self._send_command_parse_response(
667667
conn, command_name, *args, **options
668668
),
669-
lambda error: self._close_connection(conn, error, *args),
669+
lambda _: self._close_connection(conn),
670670
)
671671

672672
finally:

tests/test_asyncio/test_connection_pool.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def set_re_auth_token(self, token: TokenInterface):
114114
async def re_auth(self):
115115
pass
116116

117+
def should_reconnect(self):
118+
return False
119+
117120

118121
class TestConnectionPool:
119122
@asynccontextmanager

0 commit comments

Comments
 (0)