mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-16 17:48:49 +02:00
fix:#36 updated linting error
This commit is contained in:
@ -2,11 +2,12 @@ package grpc
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
"google.golang.org/grpc/credentials/insecure"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ConnectGRPCServer(host string) *grpc.ClientConn {
|
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 {
|
if err != nil {
|
||||||
slog.Error("could not connect to grpc server", "error", err)
|
slog.Error("could not connect to grpc server", "error", err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user