File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pub trait Ancestry<B: Block>: Stream<Item = B> + Send + Unpin + 'static {
2626/// Creates an ancestry stream from a fixed sequence of blocks.
2727///
2828/// Blocks are yielded in iterator order and no parent fetching is performed. This is useful when
29- /// the caller already has the complete ancestry needed by an application.
29+ /// the caller wants to bound the ancestry available to the application.
3030pub fn from_iter < B > ( blocks : impl IntoIterator < Item = B > ) -> impl Ancestry < B >
3131where
3232 B : Block ,
Original file line number Diff line number Diff line change @@ -153,7 +153,10 @@ mod tests {
153153 Some ( receiver)
154154 }
155155
156- fn subscribe_by_commitment ( & self , _commitment : Digest ) -> Option < oneshot:: Receiver < TestBlock > > {
156+ fn subscribe_by_commitment (
157+ & self ,
158+ _commitment : Digest ,
159+ ) -> Option < oneshot:: Receiver < TestBlock > > {
157160 let ( sender, receiver) = oneshot:: channel ( ) ;
158161 self . commitment_subscribers . lock ( ) . push ( sender) ;
159162 Some ( receiver)
Original file line number Diff line number Diff line change @@ -404,9 +404,9 @@ where
404404 callback,
405405 ) ;
406406 let buffer_handle = self . buffer . start ( broadcast) ;
407- let marshal_handle =
408- self . marshal
409- . start ( self . dkg_mailbox , Some ( self . buffered_mailbox ) , marshal) ;
407+ let marshal_handle = self
408+ . marshal
409+ . start ( self . dkg_mailbox , self . buffered_mailbox , marshal) ;
410410 let orchestrator_handle = self . orchestrator . start ( votes, certificates, resolver) ;
411411
412412 if let Err ( e) = try_join_all ( vec ! [
You can’t perform that action at this time.
0 commit comments