mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 12:27:18 +00:00
Register health APIs handler (#6999)
* DB: add block roots test * Merge branch 'master' of github.com:prysmaticlabs/prysm * Merge branch 'master' of github.com:prysmaticlabs/prysm * Pool: add seen atts map * Pool: use seen atts map * Pool: clear seen map * Merge branch 'master' of github.com:prysmaticlabs/prysm * Merge branch 'master' of github.com:prysmaticlabs/prysm * RPC: register health endpoint * Gazelle
This commit is contained in:
parent
6db448a81d
commit
b981442022
@ -59,6 +59,9 @@ func (g *Gateway) Start() {
|
||||
if err := pb.RegisterAuthHandlerFromEndpoint(ctx, gwmux, g.remoteAddr, opts); err != nil {
|
||||
log.Fatalf("Could not register API handler with grpc endpoint: %v", err)
|
||||
}
|
||||
if err := pb.RegisterHealthHandlerFromEndpoint(ctx, gwmux, g.remoteAddr, opts); err != nil {
|
||||
log.Fatalf("Could not register API handler with grpc endpoint: %v", err)
|
||||
}
|
||||
g.mux.Handle("/", g.corsMiddleware(gwmux))
|
||||
g.server = &http.Server{
|
||||
Addr: g.gatewayAddr,
|
||||
|
@ -122,6 +122,7 @@ func (s *Server) Start() {
|
||||
// Register services available for the gRPC server.
|
||||
reflection.Register(s.grpcServer)
|
||||
pb.RegisterAuthServer(s.grpcServer, s)
|
||||
pb.RegisterHealthServer(s.grpcServer, s)
|
||||
|
||||
go func() {
|
||||
if s.listener != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user