Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Rename babe_link
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr committed Jun 5, 2023
1 parent 65248e9 commit 67b1730
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pub fn new_partial(
let slot_duration = babe_link.config().slot_duration();
let (import_queue, babe_worker_handle) =
sc_consensus_babe::import_queue(sc_consensus_babe::ImportQueueParams {
babe_link: babe_link.clone(),
link: babe_link.clone(),
block_import: block_import.clone(),
justification_import: Some(Box::new(justification_import)),
client: client.clone(),
Expand Down
2 changes: 1 addition & 1 deletion client/consensus/babe/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ mod tests {
.expect("can initialize block-import");

let (_, babe_worker_handle) = sc_consensus_babe::import_queue(ImportQueueParams {
babe_link: link.clone(),
link: link.clone(),
block_import: block_import.clone(),
justification_import: None,
client: client.clone(),
Expand Down
4 changes: 2 additions & 2 deletions client/consensus/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ where
/// Parameters passed to [`import_queue`].
pub struct ImportQueueParams<'a, Block: BlockT, BI, Client, CIDP, SelectChain, Spawn> {
/// The BABE link that is created by [`block_import`].
pub babe_link: BabeLink<Block>,
pub link: BabeLink<Block>,
/// The block import that should be wrapped.
pub block_import: BI,
/// Optional justification import.
Expand Down Expand Up @@ -1815,7 +1815,7 @@ pub struct ImportQueueParams<'a, Block: BlockT, BI, Client, CIDP, SelectChain, S
/// of it, otherwise crucial import logic will be omitted.
pub fn import_queue<Block: BlockT, Client, SelectChain, BI, CIDP, Spawn>(
ImportQueueParams {
babe_link,
link: babe_link,
block_import,
justification_import,
client,
Expand Down

0 comments on commit 67b1730

Please sign in to comment.