pekko-connectors
pekko-connectors copied to clipboard
PubSub connector needs a PubSubConfig but that class is deprecated
Hey there!
We are using the Apache Pekko Connectors Google Cloud Pub Sub in our project to consume messages from PubSub
and we have noticed the following weird scenario.
These are the available method to subscribe to a PubSub topic and receive data from them, as you can see, both methods expect a PubSubConfig
as settings.
But then, in the PubSubConfig
class, I get a deprecation warning when creating an instance of this type telling me that I should be using a GoogleSettings
to manage credentials. That sounds reasenable, but if I use that as my settings, I can't provide it to any of the subscribe
methods listed above.
What then should I do? Is there any mapping/transformation available between PubSubConfig
and GoogleSettings
?
Thanks!