Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle subscription with topic from different project #15

Conversation

medinae
Copy link
Contributor

@medinae medinae commented Jun 25, 2021

Solves this issue, and solution is totally backward compatible.

@@ -86,6 +90,15 @@ type SubscriberConfig struct {
Unmarshaler Unmarshaler
}

// FetchTopicProjectID returns the proper topic project ID to use.
func (sc SubscriberConfig) FetchTopicProjectID() string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this method private? I guess that we don't need to extend public API 😉.

I'm also thinking if just topicProjectID() will be not better because we are not fetching anything - it's just a getter :)

@roblaszczak
Copy link
Member

roblaszczak commented Jun 26, 2021

Hey @medinae! Thanks for your PR. I left 2 small comments. We can go forward after addressing them :)

@medinae
Copy link
Contributor Author

medinae commented Jun 26, 2021

@roblaszczak done, please check again. thanks.

@medinae
Copy link
Contributor Author

medinae commented Jul 1, 2021

@roblaszczak can we move forward with it man?

@roblaszczak
Copy link
Member

Hey, yes! Sorry for the delay and thanks for your contribution 🎖️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants