chore(payload-builder): relax Sync bounds on resolve futures (#18585)

This commit is contained in:
VolodymyrBg
2025-09-19 23:22:53 +03:00
committed by GitHub
parent ff51faaeac
commit fa531761c4
2 changed files with 1 additions and 2 deletions

View File

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

View File

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