Skip to content

Commit

Permalink
Support gRPC reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroara committed Jul 25, 2023
1 parent 4f04f0a commit 3ed9f01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/messaging/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -111,6 +112,7 @@ func (s *Server) Run(ctx context.Context) error {
}()

pb.RegisterCommunicatorServer(srv, s)
reflection.Register(srv)
return srv.Serve(s.listener)
}

Expand Down

0 comments on commit 3ed9f01

Please sign in to comment.