mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-03 21:04:28 +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:
@@ -12,7 +12,10 @@ use std::sync::Arc;
|
||||
use tokio::sync::mpsc::UnboundedSender;
|
||||
use tracing::{debug, warn};
|
||||
use types::SignedExecutionPayloadBid;
|
||||
use warp::{Filter, Rejection, Reply, hyper::Body, hyper::Response};
|
||||
use warp::{
|
||||
Filter, Rejection,
|
||||
reply::{Reply, Response},
|
||||
};
|
||||
|
||||
// POST /eth/v1/beacon/execution_payload_bids (SSZ)
|
||||
pub(crate) fn post_beacon_execution_payload_bids_ssz<T: BeaconChainTypes>(
|
||||
@@ -78,7 +81,7 @@ pub fn publish_execution_payload_bid<T: BeaconChainTypes>(
|
||||
bid: SignedExecutionPayloadBid<T::EthSpec>,
|
||||
chain: &Arc<BeaconChain<T>>,
|
||||
network_tx: &UnboundedSender<NetworkMessage<T::EthSpec>>,
|
||||
) -> Result<Response<Body>, Rejection> {
|
||||
) -> Result<Response, Rejection> {
|
||||
let slot = bid.slot();
|
||||
let builder_index = bid.message.builder_index;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user