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

Fix: Close() is called with canceled context #118

Merged
merged 1 commit into from
May 17, 2021

Conversation

glazychev-art
Copy link
Contributor

@glazychev-art glazychev-art commented May 17, 2021

Issue: networkservicemesh/deployments-k8s#954

Signed-off-by: Artem Glazychev [email protected]

Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

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

@glazychev-art Thanks!

@@ -207,7 +207,7 @@ func main() {
}

defer func() {
closeCtx, cancel := context.WithTimeout(ctx, config.RequestTimeout)
closeCtx, cancel := context.WithTimeout(context.Background(), config.RequestTimeout)
Copy link
Member

Choose a reason for hiding this comment

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

@glazychev-art Should we alo put here context with logger?

nsmbot pushed a commit that referenced this pull request Jun 29, 2023
This PR syncs files with https://github.com/networkservicemesh/cmd-template

Revision: https://github.com/networkservicemesh/cmd-template/commits/c0ccc3bd02120b1c3d8391bc588016a714cf1a74

commit c0ccc3bd02120b1c3d8391bc588016a714cf1a74
Author: Lionel Jouin <[email protected]>
Date:   Thu Jun 29 21:09:40 2023 +0200

    Update to go 1.20 (#118)

    Signed-off-by: Lionel Jouin <[email protected]>

Signed-off-by: NSMBot <[email protected]>
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