Changed python commands

Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
This commit is contained in:
Amulya Varote 2021-12-03 08:34:09 -08:00
parent 7500cc4900
commit 07759e7b1b
1 changed files with 6 additions and 0 deletions

View File

@ -404,6 +404,7 @@ 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())
<<<<<<< HEAD
<<<<<<< HEAD
logging.info('Subscriber received: ' + str(data))
@ -413,6 +414,11 @@ app.run(6002)
app.run(60002)
>>>>>>> 0e83af7a (Added pub sub documentation)
=======
logging.info('Subscriber received: ' + str(data))
app.run(6002)
>>>>>>> babb5810 (Changed python commands)
```
Navigate to the directory containing the above code, then run the following command to launch a Dapr sidecar and run the application: