Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cargo +nightly fmt
  • Loading branch information
kianenigma committed Sep 12, 2021
commit 5127be460a20c99044479fc0bb995921ae6c2f61
5 changes: 2 additions & 3 deletions cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,8 @@ pub fn run() -> Result<()> {

use sc_service::TaskManager;
let registry = &runner.config().prometheus_config.as_ref().map(|cfg| &cfg.registry);
let task_manager =
TaskManager::new(runner.config().tokio_handle.clone(), *registry)
.map_err(|e| Error::SubstrateService(sc_service::Error::Prometheus(e)))?;
let task_manager = TaskManager::new(runner.config().tokio_handle.clone(), *registry)
.map_err(|e| Error::SubstrateService(sc_service::Error::Prometheus(e)))?;

ensure_dev(chain_spec).map_err(Error::Other)?;

Expand Down
3 changes: 1 addition & 2 deletions node/test/polkadot-simnet/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ use sp_runtime::{app_crypto::sp_core::H256, generic::Era, AccountId32};
use std::{error::Error, future::Future, str::FromStr};
use support::{weights::Weight, StorageValue};
use test_runner::{
build_runtime, client_parts, ChainInfo, ConfigOrChainSpec, Node,
SignatureVerificationOverride,
build_runtime, client_parts, ChainInfo, ConfigOrChainSpec, Node, SignatureVerificationOverride,
};

type BlockImport<B, BE, C, SC> = BabeBlockImport<B, C, GrandpaBlockImport<BE, B, C, SC>>;
Expand Down
9 changes: 7 additions & 2 deletions node/test/service/tests/build-blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ async fn ensure_test_service_build_blocks() {
builder.with_colors(false);
builder.init().expect("Sets up logger");

let mut alice =
run_validator_node(tokio::runtime::Handle::current(), Sr25519Keyring::Alice, || {}, Vec::new(), None);
let mut alice = run_validator_node(
tokio::runtime::Handle::current(),
Sr25519Keyring::Alice,
|| {},
Vec::new(),
None,
);
let mut bob = run_validator_node(
tokio::runtime::Handle::current(),
Sr25519Keyring::Bob,
Expand Down
3 changes: 2 additions & 1 deletion node/test/service/tests/call-function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ use sp_keyring::Sr25519Keyring::{Alice, Bob};

#[substrate_test_utils::test]
async fn call_function_actually_work() {
let alice = run_validator_node(tokio::runtime::Handle::current(), Alice, || {}, Vec::new(), None);
let alice =
run_validator_node(tokio::runtime::Handle::current(), Alice, || {}, Vec::new(), None);

let function = polkadot_test_runtime::Call::Balances(pallet_balances::Call::transfer(
Default::default(),
Expand Down