fn queue_request<F>(
		&mut self,
		justification: &PendingJustification<B>,
		is_descendent_of: F,
	) where F: Fn(&B::Hash, &B::Hash) -> Result<bool, ClientError> {
		match self.justifications.import(justification.0.clone(), justification.1.clone(), (), &is_descendent_of) {
			Ok(true) => {
				// this is a new root so we add it to the current `pending_requests`
				self.pending_requests.push_back((justification.0, justification.1));
			},
			Err(err) => {
				warn!(target: "sync", "Failed to insert requested justification {:?} {:?} into tree: {:?}",
					justification.0,
					justification.1,
					err,
				);
				return;
			},
			_ => {},
		};
	}
/// Queue a justification request (without dispatching it).
Queue a justification request (without dispatching it).
Queue a justification request ( without dispatching it ) .
fn queue_request<F>(
		&mut self,
		justification: &PendingJustification<B>,
		is_descendent_of: F,
	) where F: Fn(&B::Hash, &B::Hash) -> Result<bool, ClientError> {
		match self.justifications.import(justification.0.clone(), justification.1.clone(), (), &is_descendent_of) {
			Ok(true) => {
				// this is a new root so we add it to the current `pending_requests`
				self.pending_requests.push_back((justification.0, justification.1));
			},
			Err(err) => {
				warn!(target: "sync", "Failed to insert requested justification {:?} {:?} into tree: {:?}",
					justification.0,
					justification.1,
					err,
				);
				return;
			},
			_ => {},
		};
	}
fn queue_request < F > ( & mut self , justification : & PendingJustification < B > , is_descendent_of : F , ) where F : Fn ( & B :: Hash , & B :: Hash ) -> Result < bool , ClientError > { match self . justifications . import ( justification . 0 . clone ( ) , justification . 1 . clone ( ) , ( ) , & is_descendent_of ) { Ok ( true ) => { // this is a new root so we add it to the current `pending_requests` self . pending_requests . push_back ( ( justification . 0 , justification . 1 ) ) ; } , Err ( err ) => { warn ! ( target " " " " justification 0 justification 1 err ) ; return ; } , _ => { } , } ; }
Queue a justification request (without dispatching it).
Queue a justification request ( without dispatching it ) .
&mut self
justification
&PendingJustification<B>
is_descendent_of
F
&mut self
justification
&PendingJustification<B>
is_descendent_of
F