summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-04-11 12:16:55 -0700
committerGitHub <noreply@github.com>2020-04-11 12:16:55 -0700
commit2fcd5471105ccb93cc3b06fc83abfd86174dde89 (patch)
tree6b3a5bf0e1b306d379b50c259f9784c3fbead0d3
parent98242bb8dae5285494ec9eb9f9b945556a16bb6a (diff)
downloadredis-py-2fcd5471105ccb93cc3b06fc83abfd86174dde89.tar.gz
Add missing check_health argument to Connection overrides (#1323)
Now matches the parent class signature. Running the benchmark previously failed with the error: TypeError: send_packed_command() got an unexpected keyword argument 'check_health'
-rw-r--r--benchmarks/command_packer_benchmark.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/command_packer_benchmark.py b/benchmarks/command_packer_benchmark.py
index 8176391..ae2e085 100644
--- a/benchmarks/command_packer_benchmark.py
+++ b/benchmarks/command_packer_benchmark.py
@@ -7,7 +7,7 @@ from base import Benchmark
class StringJoiningConnection(Connection):
- def send_packed_command(self, command):
+ def send_packed_command(self, command, check_health=True):
"Send an already packed command to the Redis server"
if not self._sock:
self.connect()
@@ -38,7 +38,7 @@ class StringJoiningConnection(Connection):
class ListJoiningConnection(Connection):
- def send_packed_command(self, command):
+ def send_packed_command(self, command, check_health=True):
if not self._sock:
self.connect()
try: