mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 01:55:44 +00:00
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:
@@ -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,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user