You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by wi...@apache.org on 2023/10/18 07:27:52 UTC

[yunikorn-core] branch master updated: [YUNIKORN-2029] remove deprecated function (#674)

This is an automated email from the ASF dual-hosted git repository.

wilfreds pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-core.git


The following commit(s) were added to refs/heads/master by this push:
     new ba3b3621 [YUNIKORN-2029] remove deprecated function (#674)
ba3b3621 is described below

commit ba3b362144aed10d7f3c9ed28575e295eee4f710
Author: PoAn Yang <pa...@apache.org>
AuthorDate: Wed Oct 18 18:27:06 2023 +1100

    [YUNIKORN-2029] remove deprecated function (#674)
    
    * grpc WithInsecure
    
    Signed-off-by: PoAn Yang <pa...@apache.org>
    
    Closes: #674
    
    Signed-off-by: Wilfred Spiegelenburg <wi...@apache.org>
---
 cmd/schedulerclient/client.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/schedulerclient/client.go b/cmd/schedulerclient/client.go
index aa540cd6..0fbf773e 100644
--- a/cmd/schedulerclient/client.go
+++ b/cmd/schedulerclient/client.go
@@ -27,6 +27,7 @@ import (
 	"github.com/apache/yunikorn-scheduler-interface/lib/go/si"
 
 	"google.golang.org/grpc"
+	"google.golang.org/grpc/credentials/insecure"
 )
 
 const (
@@ -35,7 +36,7 @@ const (
 
 func main() {
 	// Set up a connection to the server.
-	conn, err := grpc.Dial(address, grpc.WithInsecure())
+	conn, err := grpc.Dial(address, grpc.WithTransportCredentials(insecure.NewCredentials()))
 	if err != nil {
 		log.Fatalf("did not connect: %v", err)
 	}


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org