Skip to content

Commit b1e1932

Browse files
authored
chore: remove redundant payload trait bounds (#18262)
1 parent 107399f commit b1e1932

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/payload/builder/src/traits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::future::Future;
1717
/// empty.
1818
///
1919
/// Note: A `PayloadJob` need to be cancel safe because it might be dropped after the CL has requested the payload via `engine_getPayloadV1` (see also [engine API docs](https://github.com/ethereum/execution-apis/blob/6709c2a795b707202e93c4f2867fa0bf2640a84f/src/engine/paris.md#engine_getpayloadv1))
20-
pub trait PayloadJob: Future<Output = Result<(), PayloadBuilderError>> + Send + Sync {
20+
pub trait PayloadJob: Future<Output = Result<(), PayloadBuilderError>> {
2121
/// Represents the payload attributes type that is used to spawn this payload job.
2222
type PayloadAttributes: PayloadBuilderAttributes + std::fmt::Debug;
2323
/// Represents the future that resolves the block that's returned to the CL.
@@ -93,7 +93,7 @@ pub enum KeepPayloadJobAlive {
9393
}
9494

9595
/// A type that knows how to create new jobs for creating payloads.
96-
pub trait PayloadJobGenerator: Send + Sync {
96+
pub trait PayloadJobGenerator {
9797
/// The type that manages the lifecycle of a payload.
9898
///
9999
/// This type is a future that yields better payloads.

0 commit comments

Comments
 (0)