Add the ability to change the informant's prefix (#1221)

* Initial commit

Forked at: 261d701c5b
Parent branch: origin/master

* Add the ability to change the informant's prefix

* Update Cargo.lock

* Update Cargo.lock

* fixed tests

* Rename prefix to informant prefix
This commit is contained in:
Cecile Tonglet
2020-06-10 16:50:47 +02:00
committed by GitHub
parent 67e7fba60d
commit 61e82c3495
4 changed files with 28 additions and 12 deletions
+6 -2
View File
@@ -333,6 +333,7 @@ pub async fn start_collator<P>(
para_id: ParaId,
key: Arc<CollatorPair>,
config: Configuration,
informant_prefix: Option<String>,
) -> Result<(), polkadot_service::Error>
where
P: 'static + BuildParachainContext,
@@ -351,7 +352,8 @@ where
None,
false,
6000,
None
None,
informant_prefix,
)?;
let spawn_handle = service.spawn_task_handle();
build_collator_service(
@@ -371,7 +373,8 @@ where
None,
false,
6000,
None
None,
informant_prefix,
)?;
let spawn_handle = service.spawn_task_handle();
build_collator_service(
@@ -450,6 +453,7 @@ mod tests {
0.into(),
Arc::new(CollatorPair::generate().0),
config,
None,
));
}
}