Fetch a stream message and format it as a (message_id, fields) pair
(client: redis.Redis, stream: str, message_id: str)
| 95 | |
| 96 | |
| 97 | async def get_stream_message(client: redis.Redis, stream: str, message_id: str): |
| 98 | """Fetch a stream message and format it as a (message_id, fields) pair""" |
| 99 | response = await client.xrange(stream, min=message_id, max=message_id) |
| 100 | assert len(response) == 1 |
| 101 | return response[0] |
| 102 | |
| 103 | |
| 104 | # RESPONSE CALLBACKS |
no test coverage detected