diff --git a/docs/site/examples/python/produce.py b/docs/site/examples/python/produce.py index 1f4c7f0eea3cd5304f2d00b4fe598b354923cc51..c7506ad5f4340b162bee1409044904b461802598 100644 --- a/docs/site/examples/python/produce.py +++ b/docs/site/examples/python/produce.py @@ -47,8 +47,8 @@ producer.send( id=1, # message number. Should be unique and ordered. exposed_path="processed/test_file", # name of the file. Should be unique, or it will be overwritten data=b"hello", # binary data - callback=callback, -) # callback + callback=callback, # this is called after the asynchronous send operation finishes +) # send snippet_end # send data in loop @@ -63,6 +63,6 @@ producer.wait_requests_finished( # you may want to mark the stream as finished producer.send_stream_finished_flag( stream="default", # name of the stream. If you didn't specify the stream in 'send', it would be 'default' - id=1, + last_id=1, ) # the number of the last message in the stream # finish snippet_end