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 <[email protected]>
AuthorDate: Wed Oct 18 18:27:06 2023 +1100
[YUNIKORN-2029] remove deprecated function (#674)
* grpc WithInsecure
Signed-off-by: PoAn Yang <[email protected]>
Closes: #674
Signed-off-by: Wilfred Spiegelenburg <[email protected]>
---
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: [email protected]
For additional commands, e-mail: [email protected]