@@ -79,11 +79,7 @@ impl<RequestType> RefineEligibleLeaders<RequestType> for NoRefinement {
7979/// the queue will adapt to the new state and attempt to find new leaders for the requests.
8080/// - If a request is too old so that it would have timed out on chain, it will be
8181/// discarded.
82- pub struct PendingRequests <
83- RequestType : Request ,
84- ChainRespondArgsType : ChainRespondArgs ,
85- Refiner : RefineEligibleLeaders < RequestType > = NoRefinement ,
86- > {
82+ pub struct PendingRequests < RequestType , ChainRespondArgsType , Refiner = NoRefinement > {
8783 pub ( super ) clock : near_time:: Clock ,
8884
8985 /// All participants in the network, regardless of whether they are online.
@@ -181,7 +177,7 @@ enum AggregateResponseStatus {
181177}
182178
183179/// The state of a single request in the queue.
184- pub ( super ) struct QueuedRequest < RequestType : Request , ChainRespondArgsType : ChainRespondArgs > {
180+ pub ( super ) struct QueuedRequest < RequestType , ChainRespondArgsType > {
185181 pub request : RequestType ,
186182
187183 /// Finality status of the block the request was included in.
@@ -216,15 +212,15 @@ pub(super) struct QueuedRequest<RequestType: Request, ChainRespondArgsType: Chai
216212}
217213
218214/// Struct given to the response generation code.
219- pub struct GenerationAttempt < RequestType : Request , ChainRespondArgsType : ChainRespondArgs > {
215+ pub struct GenerationAttempt < RequestType , ChainRespondArgsType > {
220216 /// The request we should attempt to generate for.
221217 pub request : RequestType ,
222218 /// The progress of the computation. Writable and survives multiple attempts.
223219 pub computation_progress : Arc < Mutex < ComputationProgress < ChainRespondArgsType > > > ,
224220}
225221
226222/// Progress that persists across attempts.
227- pub struct ComputationProgress < ChainRespondArgsType : ChainRespondArgs > {
223+ pub struct ComputationProgress < ChainRespondArgsType > {
228224 /// Number of attempts that have been made to generate the request.
229225 /// This is used to abort after too many attempts.
230226 pub attempts : u64 ,
@@ -442,7 +438,7 @@ impl<RequestType: Request + Clone, ChainRespondArgsType: ChainRespondArgs>
442438 }
443439}
444440
445- enum RequestStatus < RequestType : Request , ChainRespondArgsType : ChainRespondArgs > {
441+ enum RequestStatus < RequestType , ChainRespondArgsType > {
446442 Drop ( DropReason ) ,
447443 Wait ( & ' static str ) ,
448444 Attempt ( Arc < GenerationAttempt < RequestType , ChainRespondArgsType > > ) ,
0 commit comments