Skip to content
Snippets Groups Projects
Commit 10704b13 authored by Tim Schoof's avatar Tim Schoof Committed by Diana Rueda
Browse files

Include suggestions in produce.py for callback and last id

parent 7c2ab643
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment