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

Add error handling for SubscribeTopics function call #1165

Closed

Conversation

Vrashabh-Sontakke
Copy link

@Vrashabh-Sontakke Vrashabh-Sontakke commented Apr 5, 2024

This commit adds error handling to the main function in consumer_example.go file. Specifically, it checks for errors returned by the SubscribeTopics function call and exits the program with an error message if the subscription fails. This ensures robustness and graceful handling of errors during topic subscription.

This commit adds error handling to the main function in consumer_example.go file. Specifically, it checks for errors returned by the SubscribeTopics function call and exits the program with an error message if the subscription fails. This ensures robustness and graceful handling of errors during topic subscription.
Copy link

cla-assistant bot commented Apr 5, 2024

CLA assistant check
All committers have signed the CLA.

Adjusted indentation for improved readability and consistency.
@Desquaredp
Copy link

Squash your commits.

@Vrashabh-Sontakke Vrashabh-Sontakke marked this pull request as draft April 5, 2024 20:22
@Vrashabh-Sontakke Vrashabh-Sontakke marked this pull request as ready for review April 5, 2024 20:23
@Vrashabh-Sontakke
Copy link
Author

If you don't mind, could you please do squash merge my commits this time. I just hopped on to travel.

@Vrashabh-Sontakke
Copy link
Author

Vrashabh-Sontakke commented Apr 9, 2024

@Desquaredp Sorry ! Couldn't access my PC to squash commits, raised another PR #1169 with a single commit.

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.

None yet

2 participants