no need to ignore cancel

This commit is contained in:
Jose Garcia 2022-10-11 13:15:34 -04:00
parent 9e13f6ba6b
commit a356a1bef0

View file

@ -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 {