Skip to content

Commit 8ba4883

Browse files
committed
chore: remove deprecated funcs
1 parent dbcdc69 commit 8ba4883

File tree

1 file changed

+2
-1
lines changed
  • apps/matching-service/servers

1 file changed

+2
-1
lines changed

apps/matching-service/servers/grpc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
pb "matching-service/proto"
66

77
"google.golang.org/grpc"
8+
"google.golang.org/grpc/credentials/insecure"
89
)
910

1011
var (
@@ -13,7 +14,7 @@ var (
1314

1415
func InitGrpcServer() *grpc.ClientConn {
1516
// Dial the server
16-
conn, err := grpc.Dial("localhost:50051", grpc.WithInsecure())
17+
conn, err := grpc.NewClient("localhost:50051", grpc.WithTransportCredentials(insecure.NewCredentials()))
1718
if err != nil {
1819
log.Fatalf("Did not connect: %v", err)
1920
}

0 commit comments

Comments
 (0)