Skip to content

Commit

Permalink
chg: register reflection for grpc server
Browse files Browse the repository at this point in the history
  • Loading branch information
marcello33 committed Nov 8, 2024
1 parent aae292c commit 5d0d4fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/cli/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package server
import (
"context"
"fmt"
"google.golang.org/grpc/reflection"
"io"
"math/big"
"net"
Expand Down Expand Up @@ -443,6 +444,7 @@ func (s *Server) gRPCServerByListener(listener net.Listener) error {
s.grpcServer = grpc.NewServer(s.withLoggingUnaryInterceptor())
proto.RegisterBorServer(s.grpcServer, s)
protobor.RegisterBorApiServer(s.grpcServer, s)
reflection.Register(s.grpcServer)

go func() {
if err := s.grpcServer.Serve(listener); err != nil {
Expand Down

0 comments on commit 5d0d4fb

Please sign in to comment.