-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
P2documentationImprovements or additions to documentationImprovements or additions to documentationpinneddapr-bot exemptiondapr-bot exemption
Milestone
Description
Looks like it was copy/pasted from the pubsub example.
Topic A Is not returned here, only the default (which is an empty list, given Vec is Default over T):
rust-sdk/examples/invoke/grpc/server.rs
Lines 55 to 66 in b69e1f8
| /// Lists all topics subscribed by this app. | |
| /// | |
| /// NOTE: Dapr runtime will call this method to get | |
| /// the list of topics the app wants to subscribe to. | |
| /// In this example, the app is subscribing to topic `A`. | |
| async fn list_topic_subscriptions( | |
| &self, | |
| _request: Request<()>, | |
| ) -> Result<Response<ListTopicSubscriptionsResponse>, Status> { | |
| let list_subscriptions = ListTopicSubscriptionsResponse::default(); | |
| Ok(Response::new(list_subscriptions)) | |
| } |
Perhaps it should read something like:
/// Return an empty list of topics.
... but on that note, should the trait methods provide these default behaviours so we don't have to implement defaults for each unused method?
Metadata
Metadata
Assignees
Labels
P2documentationImprovements or additions to documentationImprovements or additions to documentationpinneddapr-bot exemptiondapr-bot exemption