no need to ignore cancel
This commit is contained in:
parent
9e13f6ba6b
commit
a356a1bef0
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue