mirror of https://github.com/dapr/docs.git
Changed python commands
Signed-off-by: Amulya Varote <amulyavarote@MININT-8V4CL0S.redmond.corp.microsoft.com>
This commit is contained in:
parent
3d617efac1
commit
95a01ccf19
|
@ -282,9 +282,9 @@ logging.basicConfig(level = logging.INFO)
|
|||
@app.subscribe(pubsub_name='order_pub_sub', topic='orders')
|
||||
def mytopic(event: v1.Event) -> None:
|
||||
data = json.loads(event.Data())
|
||||
logging.info('Subscriber received: ' + data)
|
||||
logging.info('Subscriber received: ' + str(data))
|
||||
|
||||
app.run(60002)
|
||||
app.run(6002)
|
||||
```
|
||||
|
||||
Navigate to the directory containing the above code, then run the following command to launch a Dapr sidecar and run the application:
|
||||
|
|
Loading…
Reference in New Issue