mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 07:17:56 -05:00
chore(payload-builder): relax Sync bounds on resolve futures (#18585)
This commit is contained in:
@@ -30,7 +30,7 @@ use tokio::sync::{
|
||||
use tokio_stream::wrappers::UnboundedReceiverStream;
|
||||
use tracing::{debug, info, trace, warn};
|
||||
|
||||
type PayloadFuture<P> = Pin<Box<dyn Future<Output = Result<P, PayloadBuilderError>> + Send + Sync>>;
|
||||
type PayloadFuture<P> = Pin<Box<dyn Future<Output = Result<P, PayloadBuilderError>> + Send>>;
|
||||
|
||||
/// A communication channel to the [`PayloadBuilderService`] that can retrieve payloads.
|
||||
///
|
||||
|
||||
@@ -23,7 +23,6 @@ pub trait PayloadJob: Future<Output = Result<(), PayloadBuilderError>> {
|
||||
/// Represents the future that resolves the block that's returned to the CL.
|
||||
type ResolvePayloadFuture: Future<Output = Result<Self::BuiltPayload, PayloadBuilderError>>
|
||||
+ Send
|
||||
+ Sync
|
||||
+ 'static;
|
||||
/// Represents the built payload type that is returned to the CL.
|
||||
type BuiltPayload: BuiltPayload + Clone + std::fmt::Debug;
|
||||
|
||||
Reference in New Issue
Block a user