Closed
Description
I'm using google-cloud=0.27.0 currently and now trying to use latest google-cloud-pubsub=0.28.4
But its break with current psq
implementation. Any workaround so psq
can work with latest pubsub?
Code snippet for existing implementation (works):
client = pubsub.Client(project=current_app.config['PROJECT_ID'])
psq.Queue(client, 'feed_queue', extra_context=current_app.app_context)
New implementation (breaks):
client = pubsub.SubscriberClient()
psq.Queue(client, 'feed_queue', extra_context=current_app.app_context)
(Error msg: AttributeError: 'Client' object has no attribute 'topic')
Thanks