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)