The routing header (x-goog-request-params) should include the requests subscription field. i.e. the value should be subscription=projects/my-project/subscriptions/my-subscription.
It will sadly take a mini refactor to plumb this, as the interface only accepts a channel.
My first instinct is to just add a subscription: &str to the interface (assuming lifetimes aren't an issue).
The routing header (
x-goog-request-params) should include the requestssubscriptionfield. i.e. the value should besubscription=projects/my-project/subscriptions/my-subscription.google-cloud-rust/src/pubsub/src/subscriber/transport.rs
Line 70 in aa9f9f7
It will sadly take a mini refactor to plumb this, as the interface only accepts a channel.
My first instinct is to just add a
subscription: &strto the interface (assuming lifetimes aren't an issue).