mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
Use same fmt and clippy configs as in Substrate (#7611)
* Use same rustfmt.toml as Substrate Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * format format file Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Format with new config Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add Substrate Clippy config Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Print Clippy version in CI Otherwise its difficult to reproduce locally. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make fmt happy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update node/core/pvf/src/error.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> * Update node/core/pvf/src/error.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
This commit is contained in:
committed by
GitHub
parent
ac435c96cf
commit
342d720573
@@ -221,7 +221,8 @@ impl Collator {
|
||||
|
||||
/// Create the collation function.
|
||||
///
|
||||
/// This collation function can be plugged into the overseer to generate collations for the undying parachain.
|
||||
/// This collation function can be plugged into the overseer to generate collations for the
|
||||
/// undying parachain.
|
||||
pub fn create_collation_function(
|
||||
&self,
|
||||
spawner: impl SpawnNamed + Clone + 'static,
|
||||
@@ -309,8 +310,9 @@ impl Collator {
|
||||
|
||||
/// Wait until `seconded` collations of this collator are seconded by a parachain validator.
|
||||
///
|
||||
/// The internal counter isn't de-duplicating the collations when counting the number of seconded collations. This
|
||||
/// means when one collation is seconded by X validators, we record X seconded messages.
|
||||
/// The internal counter isn't de-duplicating the collations when counting the number of
|
||||
/// seconded collations. This means when one collation is seconded by X validators, we record X
|
||||
/// seconded messages.
|
||||
pub async fn wait_for_seconded_collations(&self, seconded: u32) {
|
||||
let seconded_collations = self.seconded_collations.clone();
|
||||
loop {
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
|
||||
const PUPPET_EXE: &str = env!("CARGO_BIN_EXE_undying_collator_puppet_worker");
|
||||
|
||||
// If this test is failing, make sure to run all tests with the `real-overseer` feature being enabled.
|
||||
// If this test is failing, make sure to run all tests with the `real-overseer` feature being
|
||||
// enabled.
|
||||
#[substrate_test_utils::test(flavor = "multi_thread")]
|
||||
async fn collating_using_undying_collator() {
|
||||
use polkadot_primitives::Id as ParaId;
|
||||
|
||||
Reference in New Issue
Block a user