Skip to content

Use PublishWithContext instead of Publish #337

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

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

Gsantomaggio
Copy link
Member

@Gsantomaggio Gsantomaggio commented Sep 5, 2022

Update the GO tutorials with PublishWithContext instead of Publish

Publish is deprecated.

As context I used: ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)

I also updated the Golang Version to 1.7

Signed-off-by: Gabriele Santomaggio [email protected]

Method Publish is deprecrated

Signed-off-by: Gabriele Santomaggio <[email protected]>
@Gsantomaggio Gsantomaggio requested a review from Zerpet September 5, 2022 09:13
@Gsantomaggio Gsantomaggio merged commit e4fee05 into master Sep 5, 2022
@Gsantomaggio Gsantomaggio deleted the use_publish_with_context branch September 5, 2022 09:34
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.

2 participants