fix:#53 updated deprecated grpc client call

This commit is contained in:
Elmar Kresse
2024-09-07 10:18:48 +02:00
parent 9f8fb25f61
commit ec7ec6bcca

View File

@ -23,7 +23,7 @@ import (
)
func ConnectGRPCServer(host string) *grpc.ClientConn {
conn, err := grpc.Dial(host+":50051", grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.NewClient(host+":50051", grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
slog.Error("could not connect to grpc server", "error", err)
}