mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
chg: register reflection for grpc server
This commit is contained in:
parent
aae292c8ca
commit
5d0d4fbbc5
1 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ package server
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"google.golang.org/grpc/reflection"
|
||||
"io"
|
||||
"math/big"
|
||||
"net"
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue