From 3ed9f01bc9313d7995a644737046117d2daf0796 Mon Sep 17 00:00:00 2001 From: Arai Hiroki Date: Tue, 25 Jul 2023 09:44:21 +0900 Subject: [PATCH] Support gRPC reflection --- internal/messaging/server/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/messaging/server/server.go b/internal/messaging/server/server.go index b8da106..64e5e87 100644 --- a/internal/messaging/server/server.go +++ b/internal/messaging/server/server.go @@ -10,6 +10,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/grpc/reflection" "github.com/hiroara/carbo/internal/messaging/pb" ) @@ -111,6 +112,7 @@ func (s *Server) Run(ctx context.Context) error { }() pb.RegisterCommunicatorServer(srv, s) + reflection.Register(srv) return srv.Serve(s.listener) }