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

Commit

Permalink
Substrate companion PR
Browse files Browse the repository at this point in the history
impl Debug for sc_service::Configuration

Related to: paritytech/substrate#6400
  • Loading branch information
cecton committed Jun 19, 2020
1 parent 0bab763 commit 7b5ac3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions collator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,14 +501,14 @@ mod tests {
}
}

// Make sure that the future returned by `start_collator` implementes `Send`.
// Make sure that the future returned by `start_collator` implements `Send`.
#[test]
fn start_collator_is_send() {
fn check_send<T: Send>(_: T) {}

let cli = Cli::from_iter(&["-dev"]);
let task_executor = Arc::new(|_, _| unimplemented!());
let config = cli.create_configuration(&cli.run.base, task_executor).unwrap();
let task_executor = |_, _| unimplemented!();
let config = cli.create_configuration(&cli.run.base, task_executor.into()).unwrap();

check_send(start_collator(
BuildDummyParachainContext,
Expand Down

0 comments on commit 7b5ac3e

Please sign in to comment.