mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-02 12:24:29 +00:00
Bump warp and begin axum migration (#9001)
- Bump `warp` to 0.4. This unifies `warp` and `axum` onto the same `http`, `hyper`, `h2`, `rustls`, etc versions. - Create `axum_utils` which contain common functions and types - Begins migration of all HTTP API servers from warp to axum Co-Authored-By: Mac L <mjladson@pm.me>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use account_utils::{STDIN_INPUTS_FLAG, read_input_from_user};
|
||||
use axum_utils::tls::TlsConfig;
|
||||
use beacon_chain::chain_config::{
|
||||
DEFAULT_PREPARE_PAYLOAD_LOOKAHEAD_FACTOR, INVALID_HOLESKY_BLOCK_ROOT,
|
||||
};
|
||||
@@ -12,7 +13,6 @@ use client::{ClientConfig, ClientGenesis};
|
||||
use directory::{DEFAULT_BEACON_NODE_DIR, DEFAULT_NETWORK_DIR, DEFAULT_ROOT_DIR};
|
||||
use environment::RuntimeContext;
|
||||
use execution_layer::DEFAULT_JWT_FILE;
|
||||
use http_api::TlsConfig;
|
||||
use lighthouse_network::{Enr, Multiaddr, NetworkConfig, PeerIdSerialized};
|
||||
use network_utils::listen_addr::ListenAddress;
|
||||
use sensitive_url::SensitiveUrl;
|
||||
|
||||
@@ -139,6 +139,7 @@ impl<E: EthSpec> ProductionBeaconNode<E> {
|
||||
.notifier()?
|
||||
.http_metrics_config(client_config.http_metrics.clone())
|
||||
.build()
|
||||
.await
|
||||
.map(Self)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user