grpc reflection
ci.vdhsn.com/push Build is failing
Details
ci.vdhsn.com/push Build is failing
Details
parent
fe329d2336
commit
4ab08d20b8
|
|
@ -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…
Reference in New Issue