mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: move type def (#6511)
This commit is contained in:
@ -21,6 +21,8 @@ use tokio::sync::{mpsc, oneshot};
|
||||
use tokio_stream::wrappers::UnboundedReceiverStream;
|
||||
use tracing::{debug, info, trace, warn};
|
||||
|
||||
type PayloadFuture<P> = Pin<Box<dyn Future<Output = Result<P, PayloadBuilderError>> + Send + Sync>>;
|
||||
|
||||
/// A communication channel to the [PayloadBuilderService] that can retrieve payloads.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct PayloadStore<Engine: EngineTypes> {
|
||||
@ -397,9 +399,6 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: make generic over built payload type
|
||||
type PayloadFuture<P> = Pin<Box<dyn Future<Output = Result<P, PayloadBuilderError>> + Send + Sync>>;
|
||||
|
||||
/// Message type for the [PayloadBuilderService].
|
||||
pub enum PayloadServiceCommand<Engine: EngineTypes> {
|
||||
/// Start building a new payload.
|
||||
|
||||
Reference in New Issue
Block a user