From 2fcd5471105ccb93cc3b06fc83abfd86174dde89 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 11 Apr 2020 12:16:55 -0700 Subject: 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' --- benchmarks/command_packer_benchmark.py | 4 ++-- 1 file 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: -- cgit v1.2.1