Skip to content

Commit f9d32c8

Browse files
author
Andrew Farries
committed
Use reflection in the base server
1 parent aa480e2 commit f9d32c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/common-go/baseserver/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"google.golang.org/grpc"
2828
"google.golang.org/grpc/credentials"
2929
"google.golang.org/grpc/health/grpc_health_v1"
30+
"google.golang.org/grpc/reflection"
3031
)
3132

3233
func New(name string, opts ...Option) (*Server, error) {
@@ -291,6 +292,8 @@ func (s *Server) initializeGRPC() error {
291292

292293
s.grpc = grpc.NewServer(opts...)
293294

295+
reflection.Register(s.grpc)
296+
294297
// Register health service by default
295298
grpc_health_v1.RegisterHealthServer(s.grpc, s.options.grpcHealthCheck)
296299

0 commit comments

Comments
 (0)