@@ -28,26 +28,24 @@ use {
2828/// This is a long-running job that will be polled by the CL node until it is
2929/// resolved. The job future must resolve within 1 second from the moment
3030/// [`PayloadJob::resolve_kind`] is called with [`PaylodKind::Earliest`].
31- pub struct PayloadJob < P , Provider , Pool >
31+ pub struct PayloadJob < P , Provider >
3232where
3333 P : Platform ,
34- Pool : traits:: PoolBounds < P > ,
3534 Provider : traits:: ProviderBounds < P > ,
3635{
3736 block : BlockContext < P > ,
38- fut : ExecutorFuture < P , Provider , Pool > ,
37+ fut : ExecutorFuture < P , Provider > ,
3938}
4039
41- impl < P , Provider , Pool > PayloadJob < P , Provider , Pool >
40+ impl < P , Provider > PayloadJob < P , Provider >
4241where
4342 P : Platform ,
44- Pool : traits:: PoolBounds < P > ,
4543 Provider : traits:: ProviderBounds < P > ,
4644{
4745 pub fn new (
4846 pipeline : & Arc < Pipeline < P > > ,
4947 block : BlockContext < P > ,
50- service : & Arc < ServiceContext < P , Provider , Pool > > ,
48+ service : & Arc < ServiceContext < P , Provider > > ,
5149 ) -> Self {
5250 debug ! (
5351 "New Payload Job {} with block context: {block:#?}" ,
@@ -64,15 +62,14 @@ where
6462 }
6563}
6664
67- impl < P , Provider , Pool > RethPayloadJobTrait for PayloadJob < P , Provider , Pool >
65+ impl < P , Provider > RethPayloadJobTrait for PayloadJob < P , Provider >
6866where
6967 P : Platform ,
70- Pool : traits:: PoolBounds < P > ,
7168 Provider : traits:: ProviderBounds < P > ,
7269{
7370 type BuiltPayload = types:: BuiltPayload < P > ;
7471 type PayloadAttributes = types:: PayloadBuilderAttributes < P > ;
75- type ResolvePayloadFuture = ExecutorFuture < P , Provider , Pool > ;
72+ type ResolvePayloadFuture = ExecutorFuture < P , Provider > ;
7673
7774 fn best_payload ( & self ) -> Result < Self :: BuiltPayload , PayloadBuilderError > {
7875 unimplemented ! ( "PayloadJob::best_payload is not implemented" ) ;
@@ -111,10 +108,9 @@ where
111108/// This future is polled for the first time by the Reth runtime when the
112109/// `PayloadJob` is created. Here we want to immediately start executing
113110/// the pipeline instead of waiting for the `resolve_kind` to be called.
114- impl < P , Provider , Pool > Future for PayloadJob < P , Provider , Pool >
111+ impl < P , Provider > Future for PayloadJob < P , Provider >
115112where
116113 P : Platform ,
117- Pool : traits:: PoolBounds < P > ,
118114 Provider : traits:: ProviderBounds < P > ,
119115{
120116 type Output = Result < ( ) , PayloadBuilderError > ;
@@ -144,14 +140,13 @@ where
144140/// This future wraps the `PipelineExecutor` and is used to poll the
145141/// internal executor of the pipeline. Once this future is resolved, it
146142/// can be polled again and will return copie of the resolved payload.
147- pub struct ExecutorFuture < P , Provider , Pool >
143+ pub struct ExecutorFuture < P , Provider >
148144where
149145 P : Platform ,
150- Pool : traits:: PoolBounds < P > ,
151146 Provider : traits:: ProviderBounds < P > ,
152147{
153148 payload_id : PayloadId ,
154- state : ExecutorFutureState < P , Provider , Pool > ,
149+ state : ExecutorFutureState < P , Provider > ,
155150}
156151
157152/// This enum allows us to wrap the `PipelineExecutor` future
@@ -162,35 +157,32 @@ where
162157/// Whenever any of the copies of the future is polled, it will poll the
163158/// executor, if any copy resolved, all copies will also resolve with the same
164159/// result.
165- enum ExecutorFutureState < P , Provider , Pool >
160+ enum ExecutorFutureState < P , Provider >
166161where
167162 P : Platform ,
168- Pool : traits:: PoolBounds < P > ,
169163 Provider : traits:: ProviderBounds < P > ,
170164{
171165 Ready ( Result < types:: BuiltPayload < P > , Arc < PayloadBuilderError > > ) ,
172- Future ( Shared < PipelineExecutor < P , Provider , Pool > > ) ,
166+ Future ( Shared < PipelineExecutor < P , Provider > > ) ,
173167}
174168
175- impl < P , Provider , Pool > ExecutorFuture < P , Provider , Pool >
169+ impl < P , Provider > ExecutorFuture < P , Provider >
176170where
177171 P : Platform ,
178- Pool : traits:: PoolBounds < P > ,
179172 Provider : traits:: ProviderBounds < P > ,
180173{
181- pub fn new ( executor : PipelineExecutor < P , Provider , Pool > ) -> Self {
174+ pub fn new ( executor : PipelineExecutor < P , Provider > ) -> Self {
182175 Self {
183176 payload_id : executor. payload_id ( ) ,
184177 state : ExecutorFutureState :: Future ( executor. shared ( ) ) ,
185178 }
186179 }
187180}
188181
189- impl < P , Provider , Pool > Future for ExecutorFuture < P , Provider , Pool >
182+ impl < P , Provider > Future for ExecutorFuture < P , Provider >
190183where
191184 P : Platform ,
192185 Provider : traits:: ProviderBounds < P > ,
193- Pool : traits:: PoolBounds < P > ,
194186{
195187 type Output = Result < types:: BuiltPayload < P > , PayloadBuilderError > ;
196188
@@ -230,11 +222,10 @@ where
230222/// We want this to be clonable because the `resolve_kind` method could
231223/// potentially return multiple copies of the future, and we want all of them to
232224/// resolve with the same result at the same time.
233- impl < P , Provider , Pool > Clone for ExecutorFuture < P , Provider , Pool >
225+ impl < P , Provider > Clone for ExecutorFuture < P , Provider >
234226where
235227 P : Platform ,
236228 Provider : traits:: ProviderBounds < P > ,
237- Pool : traits:: PoolBounds < P > ,
238229{
239230 fn clone ( & self ) -> Self {
240231 Self {
0 commit comments