From d1dbcb7be3b33574da895211f092aab4c2e3fef9 Mon Sep 17 00:00:00 2001 From: Ben Grewell Date: Mon, 14 Jun 2021 15:41:03 -0700 Subject: [PATCH] extended deadline for grpc calls --- .idea/workspace.xml | 10 +++++----- controller.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index baffb5a..27e0d98 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -57,45 +57,45 @@ + - + - + - + - + - diff --git a/controller.go b/controller.go index 73dd202..0972e9d 100644 --- a/controller.go +++ b/controller.go @@ -117,7 +117,7 @@ func (c *Controller) NewClient(serverAddr string) (client *Client, err error) { return nil, err } - ctx, cancel := context.WithTimeout(context.Background(), time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 2 * time.Second) defer cancel() reply, err := grpc.GrpcRequestServer(ctx, &api.StartServerRequest{}) srvPort := int(reply.ListenPort)