Skip to content

C++ pubsub subscribers not pulling messages #10386

Answered by coryan
iamsamskup asked this question in Q&A
Discussion options

You must be logged in to vote

This is a little too much code for me to diagnose. Can you create a smaller, reproducible program that shows the problem? I will try to answer your specific questions if I can:

I suspect that my issue is not using the correct subscription object when calling google:: cloud ::pubsub::MakeSubscriberConnection(subscription) but am not sure. It seems like I should be passing the object returned from subscription_admin_client.CreateSubscription() instead of passing a regular subscription object that only contains the project and subscription ids?

No. You should be able to use a pubsub::Subscription there. A pubusb::Subscription is a convenience class to just hold the name (just a string real…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iamsamskup
Comment options

Answer selected by iamsamskup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants