(20241212) Added tests to check if everything is up and running.
This commit is contained in:
+1
-1
@@ -134,7 +134,7 @@ if __name__ == "__main__":
|
||||
while True:
|
||||
await asyncio.sleep(1.0)
|
||||
messages = await my_consumer.consume(count = 10, timeout = 1.0)
|
||||
for message in messages: print(json.to_string(message["value"]))
|
||||
for message in messages: print("MESSAGE:", json.to_string(message["value"]))
|
||||
|
||||
async def main():
|
||||
await asyncio.gather(*[keep_producing(), keep_consuming()])
|
||||
|
||||
Reference in New Issue
Block a user