Skip to content

Commit 41190d7

Browse files
committed
Fixed bug with missing async operator
1 parent 5422955 commit 41190d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redis/_parsers/resp3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, socket_read_size):
1717
self.pubsub_push_handler_func = self.handle_pubsub_push_response
1818
self.invalidation_push_handler_func = None
1919

20-
def handle_pubsub_push_response(self, response):
20+
async def handle_pubsub_push_response(self, response):
2121
logger = getLogger("push_response")
2222
logger.info("Push response: " + str(response))
2323
return response

tests/test_asyncio/test_pubsub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ async def test_get_message_without_subscribe(self, r: redis.Redis, pubsub):
461461

462462
@pytest.mark.onlynoncluster
463463
class TestPubSubRESP3Handler:
464-
def my_handler(self, message):
464+
async def my_handler(self, message):
465465
self.message = ["my handler", message]
466466

467467
@pytest.mark.skipif(HIREDIS_AVAILABLE, reason="PythonParser only")

0 commit comments

Comments
 (0)