@@ -24,7 +24,7 @@ use apollo_config_manager_config::config::ConfigManagerConfig;
2424use apollo_consensus_config:: config:: ConsensusDynamicConfig ;
2525use apollo_consensus_manager_config:: config:: ConsensusManagerConfig ;
2626use apollo_gateway_config:: config:: GatewayConfig ;
27- use apollo_http_server_config:: config:: HttpServerConfig ;
27+ use apollo_http_server_config:: config:: { HttpServerConfig , HttpServerDynamicConfig } ;
2828use apollo_infra_utils:: path:: resolve_project_relative_path;
2929use apollo_l1_gas_price_provider_config:: config:: {
3030 L1GasPriceProviderConfig ,
@@ -294,13 +294,16 @@ pub struct NodeDynamicConfig {
294294 #[ validate( nested) ]
295295 pub consensus_dynamic_config : Option < ConsensusDynamicConfig > ,
296296 #[ validate( nested) ]
297+ pub http_server_dynamic_config : Option < HttpServerDynamicConfig > ,
298+ #[ validate( nested) ]
297299 pub mempool_dynamic_config : Option < MempoolDynamicConfig > ,
298300}
299301
300302impl SerializeConfig for NodeDynamicConfig {
301303 fn dump ( & self ) -> BTreeMap < ParamPath , SerializedParam > {
302304 let sub_configs = [
303305 ser_optional_sub_config ( & self . consensus_dynamic_config , "consensus_dynamic_config" ) ,
306+ ser_optional_sub_config ( & self . http_server_dynamic_config , "http_server_dynamic_config" ) ,
304307 ser_optional_sub_config ( & self . mempool_dynamic_config , "mempool_dynamic_config" ) ,
305308 ] ;
306309 sub_configs. into_iter ( ) . flatten ( ) . collect ( )
@@ -315,11 +318,15 @@ impl From<&SequencerNodeConfig> for NodeDynamicConfig {
315318 consensus_manager_config. consensus_manager_config . dynamic_config . clone ( )
316319 } ,
317320 ) ;
321+ let http_server_dynamic_config = sequencer_node_config
322+ . http_server_config
323+ . as_ref ( )
324+ . map ( |http_server_config| http_server_config. dynamic_config . clone ( ) ) ;
318325 let mempool_dynamic_config = sequencer_node_config
319326 . mempool_config
320327 . as_ref ( )
321328 . map ( |mempool_config| mempool_config. dynamic_config . clone ( ) ) ;
322- Self { consensus_dynamic_config, mempool_dynamic_config }
329+ Self { consensus_dynamic_config, http_server_dynamic_config , mempool_dynamic_config }
323330 }
324331}
325332
0 commit comments