Skip to content

Commit

Permalink
fix: resolve deprecated code
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed Sep 30, 2024
1 parent a19e8e6 commit a7fbbd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/client/gateway/filter/egress-filter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func main() {
glg.Println("start gRPC Client.")

addr := net.JoinHostPort(egressServerHost, strconv.Itoa(int(egressServerPort)))
conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.NewClient(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
glg.Error("Connection failed.")
return
Expand Down
2 changes: 1 addition & 1 deletion example/client/gateway/filter/ingress-filter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func main() {
glg.Println("start gRPC Client.")

addr := net.JoinHostPort(ingressServerHost, strconv.Itoa(int(ingressServerPort)))
conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.NewClient(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
glg.Error("Connection failed.")
return
Expand Down

0 comments on commit a7fbbd5

Please sign in to comment.