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

chore: update pubsub example to branch on string vs bytes and rename MOMENTO_AUTH_TOKEN var to MOMENTO_API_KEY #352

Closed
wants to merge 1 commit into from

Conversation

anitarua
Copy link
Contributor

@anitarua anitarua commented Sep 8, 2023

Addresses the golang task in #452 and also renames the environment variable used in the examples from MOMENTO_AUTH_TOKEN to MOMENTO_API_KEY as per recent changes (might not be necessary though, can undo renaming if so).

@@ -47,12 +47,19 @@ func pollForMessages(ctx context.Context, sub momento.TopicSubscription) {
if err != nil {
panic(err)
}
fmt.Printf("received message: '%v'\n", item)
switch msg := item.(type) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

anything else needed here besides printing out the messages?

@anitarua anitarua marked this pull request as ready for review September 8, 2023 18:59
@anitarua anitarua closed this Sep 12, 2023
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.

1 participant