From 10704b13812cca4140937481402efd82db2b20a4 Mon Sep 17 00:00:00 2001 From: Tim Schoof <tim.schoof@desy.de> Date: Tue, 21 May 2024 17:28:37 +0200 Subject: [PATCH] Include suggestions in produce.py for callback and last id --- docs/site/examples/python/produce.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/site/examples/python/produce.py b/docs/site/examples/python/produce.py index 1f4c7f0ee..c7506ad5f 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 -- GitLab