mirror of https://github.com/dapr/docs.git
Update pubsub-message-ttl.md
Update python-sdk example to reflect dapr/python-sdk#299 Signed-off-by: Charlie Stanley <charlie.stanley@microsoft.com>
This commit is contained in:
parent
06c525f3a8
commit
e7aa517ba9
|
@ -55,9 +55,7 @@ with DaprClient() as d:
|
|||
pubsub_name='pubsub',
|
||||
topic='TOPIC_A',
|
||||
data=json.dumps(req_data),
|
||||
metadata=(
|
||||
('ttlInSeconds', '120')
|
||||
)
|
||||
publish_metadata={'ttlInSeconds': '120'}
|
||||
)
|
||||
# Print the request
|
||||
print(req_data, flush=True)
|
||||
|
|
Loading…
Reference in New Issue