From a356a1bef0bfb32546aa775f3cf2cd79b9bf7e6c Mon Sep 17 00:00:00 2001 From: Jose Garcia Date: Tue, 11 Oct 2022 13:15:34 -0400 Subject: [PATCH] no need to ignore cancel --- pkg/cmd/codespace/jupyter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/codespace/jupyter.go b/pkg/cmd/codespace/jupyter.go index 928dc8871..5c19c2ab1 100644 --- a/pkg/cmd/codespace/jupyter.go +++ b/pkg/cmd/codespace/jupyter.go @@ -89,7 +89,8 @@ func (a *App) Jupyter(ctx context.Context, codespaceName string) (err error) { } func connectToGRPCServer(ctx context.Context, session liveshareSession, token string) (*grpc.Client, error) { - ctx, _ = context.WithTimeout(ctx, grpc.ConnectionTimeout) + ctx, cancel := context.WithTimeout(ctx, grpc.ConnectionTimeout) + defer cancel() client, err := grpc.Connect(ctx, session, token) if err != nil {