grpc reflection
ci.vdhsn.com/push Build is failing Details

feat/auth
Adam Veldhousen 11 months ago
parent fe329d2336
commit 4ab08d20b8
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B

@ -10,8 +10,10 @@ import (
"time"
"google.golang.org/grpc"
"google.golang.org/grpc/backoff"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/reflection"
)
type ServerBuilder func(grpc.ServiceRegistrar, string)
@ -38,6 +40,8 @@ func StartGRPCServer(ctx context.Context, port int, sb ServerBuilder, opts ...gr
grpcServerInstance = grpc.NewServer(opts...)
reflection.Register(grpcServerInstance)
sb(grpcServerInstance, endpoint)
if err = grpcServerInstance.Serve(listener); err != nil {

Loading…
Cancel
Save