chore: move type def (#6511)

This commit is contained in:
Matthias Seitz
2024-02-09 16:52:11 +01:00
committed by GitHub
parent c78ba8588b
commit e23eeeee01

View File

@ -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.