fix:#36 updated linting error

This commit is contained in:
Elmar Kresse
2024-06-17 01:13:52 +02:00
parent 27884ff06a
commit 56e77630b5

View File

@ -2,11 +2,12 @@ package grpc
import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"log/slog"
)
func ConnectGRPCServer(host string) *grpc.ClientConn {
conn, err := grpc.Dial(host+":50051", grpc.WithInsecure(), grpc.WithBlock())
conn, err := grpc.Dial(host+":50051", grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
slog.Error("could not connect to grpc server", "error", err)
}