Skip to content

Commit

Permalink
move setting route handlers to registration from start (#13676)
Browse files Browse the repository at this point in the history
* moving route registration out of the start function and into registration

* moving where grpc is set
  • Loading branch information
james-prysm authored and nalepae committed Feb 29, 2024
1 parent 04760e7 commit 55551dd
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 141 deletions.
1 change: 0 additions & 1 deletion beacon-chain/gateway/helpers.go
Expand Up @@ -11,7 +11,6 @@ import (

// MuxConfig contains configuration that should be used when registering the beacon node in the gateway.
type MuxConfig struct {
Handler gateway.MuxHandler
EthPbMux *gateway.PbMux
V1AlphaPbMux *gateway.PbMux
}
Expand Down
1 change: 0 additions & 1 deletion beacon-chain/node/node.go
Expand Up @@ -1002,7 +1002,6 @@ func (b *BeaconNode) registerGRPCGateway(router *mux.Router) error {
apigateway.WithGatewayAddr(gatewayAddress),
apigateway.WithRemoteAddr(selfAddress),
apigateway.WithPbHandlers(muxs),
apigateway.WithMuxHandler(gatewayConfig.Handler),
apigateway.WithRemoteCert(selfCert),
apigateway.WithMaxCallRecvMsgSize(maxCallSize),
apigateway.WithAllowedOrigins(allowedOrigins),
Expand Down

0 comments on commit 55551dd

Please sign in to comment.