Skip to content

Commit c452666

Browse files
fix
1 parent b1e1659 commit c452666

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

consensus/src/marshal/ancestry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
3030
pub fn from_iter<B>(blocks: impl IntoIterator<Item = B>) -> impl Ancestry<B>
3131
where
3232
B: Block,

consensus/src/marshal/core/subscriptions.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

examples/reshare/src/engine.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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![

0 commit comments

Comments
 (0)