move setting route handlers to registration from start (#13676)

* moving route registration out of the start function and into registration

* moving where grpc is set
This commit is contained in:
james-prysm
2024-02-28 05:30:31 -06:00
committed by GitHub
parent f1615c4c88
commit 6d3c6a6331
3 changed files with 264 additions and 266 deletions

View File

@@ -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),