Fetch a stream message and format it as a (message_id, fields) pair
(client, stream, message_id)
| 66 | |
| 67 | |
| 68 | def get_stream_message(client, stream, message_id): |
| 69 | "Fetch a stream message and format it as a (message_id, fields) pair" |
| 70 | response = client.xrange(stream, min=message_id, max=message_id) |
| 71 | assert len(response) == 1 |
| 72 | return response[0] |
| 73 | |
| 74 | |
| 75 | # RESPONSE CALLBACKS |
no test coverage detected