From 67b17307af7e49f75c4e2751be7d0a98f56efcb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Mon, 5 Jun 2023 14:06:05 +0200 Subject: [PATCH] Rename `babe_link` --- bin/node/cli/src/service.rs | 2 +- client/consensus/babe/rpc/src/lib.rs | 2 +- client/consensus/babe/src/lib.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/node/cli/src/service.rs b/bin/node/cli/src/service.rs index 6f1b5052d90fa..c096420b0dc90 100644 --- a/bin/node/cli/src/service.rs +++ b/bin/node/cli/src/service.rs @@ -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(), diff --git a/client/consensus/babe/rpc/src/lib.rs b/client/consensus/babe/rpc/src/lib.rs index 617b5d4a5d232..b4582646daf35 100644 --- a/client/consensus/babe/rpc/src/lib.rs +++ b/client/consensus/babe/rpc/src/lib.rs @@ -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(), diff --git a/client/consensus/babe/src/lib.rs b/client/consensus/babe/src/lib.rs index 77e557aa0e153..e4defd53df1a3 100644 --- a/client/consensus/babe/src/lib.rs +++ b/client/consensus/babe/src/lib.rs @@ -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, + pub link: BabeLink, /// The block import that should be wrapped. pub block_import: BI, /// Optional justification import. @@ -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( ImportQueueParams { - babe_link, + link: babe_link, block_import, justification_import, client,