diff --git a/howto/consume-topic/README.md b/howto/consume-topic/README.md index a582f2ffa..3ef941a32 100644 --- a/howto/consume-topic/README.md +++ b/howto/consume-topic/README.md @@ -52,9 +52,7 @@ const port = 3000 { pubsubname: "pubsub", topic: "newOrder", - route: "orders", - pubsubName: "messagebus" - } + route: "orders" } ]); }) @@ -65,7 +63,7 @@ app.post('/orders', (req, res) => { app.listen(port, () => console.log(`consumer app listening on port ${port}!`)) -In the payload returned to Dapr, `topic` tells Dapr which topic to subscribe to, `route` tells Dapr which endpoint to call on when a message comes to that topic, and `pubsubName` tells Dapr which pub/sub component it should use. In this example this is `messagebus` as this is the name of the component we outlined above. +In the payload returned to Dapr, `topic` tells Dapr which topic to subscribe to, `route` tells Dapr which endpoint to call on when a message comes to that topic, and `pubsubName` tells Dapr which pub/sub component it should use. In this example this is `pubsub` as this is the name of the component we outlined above. ## Consume messages @@ -79,9 +77,7 @@ app.get('/dapr/subscribe', (req, res) => { { pubsubname: "pubsub", topic: "onCreated", - route: "custom/path", - pubsubName: "messagebus" - } + route: "custom/path" } ]); })