justinmclean opened a new pull request, #49:
URL: https://github.com/apache/iggy-website/pull/49

   The Python snippets on both SDK doc pages could not run. `intro.mdx` used
   `await` at module level, which is a syntax error in a script.
   
   Changes to both pages:
   
   - wrapped in `async def main()` with `asyncio.run(main())`
   - `127.0.0.1` rather than `localhost`, since the server listens on IPv4 only 
by
     default
   - create the stream and topic only when `get_stream` / `get_topic` return 
None,
     so re-runs are clean
   - dropped the unused `ReceiveMessage` import
   - the producer now prints what it sent, rather than succeeding in silence
   - noted that `Next()` with `auto_commit=True` continues from the last 
committed
     offset, so consecutive runs read successive batches
   
   Run against `apache/iggy:edge` producer twice, then the consumer twice, with 
the second
   consumer run picking up the next ten as expected.
   
   AI was used to help create this. Reviewed and tested by a real human.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to