mirror of https://github.com/dapr/docs.git
Changed python commands
Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
This commit is contained in:
parent
7500cc4900
commit
07759e7b1b
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue