mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-06 19:59:13 +02:00
fix:#53 updated deprecated grpc client call
This commit is contained in:
@@ -23,7 +23,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func ConnectGRPCServer(host string) *grpc.ClientConn {
|
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 {
|
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