Skip to content

Commit

Permalink
[YUNIKORN-2029] remove deprecated function (#674)
Browse files Browse the repository at this point in the history
* grpc WithInsecure

Signed-off-by: PoAn Yang <[email protected]>

Closes: #674

Signed-off-by: Wilfred Spiegelenburg <[email protected]>
  • Loading branch information
FrankYang0529 authored and wilfred-s committed Oct 18, 2023
1 parent e032c2f commit ba3b362
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/schedulerclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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)
}
Expand Down

0 comments on commit ba3b362

Please sign in to comment.