mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Rewrite client handling (#1531)
* Rewrite client handling We are supporting muliple polkadot-like chains and all have different client types. This pr reworks the client handling by having all of them in one enum combined. Besides that, there is added a special trait `ExecuteWithClient` to use the internal client. * Apply suggestions from code review Co-authored-by: Robert Habermeier <rphmeier@gmail.com> * Up the versions * Fix Cargo.lock * Fix merge conflict * ...................... * ....v2 * yep * I'm dumb... * Browser lol Co-authored-by: Robert Habermeier <rphmeier@gmail.com>
This commit is contained in:
@@ -131,17 +131,17 @@ pub fn run() -> Result<()> {
|
||||
|
||||
runner.run_node_until_exit(|config| {
|
||||
let role = config.role.clone();
|
||||
let builder = service::NodeBuilder::new(config);
|
||||
|
||||
match role {
|
||||
Role::Light => builder.build_light().map(|(task_manager, _)| task_manager),
|
||||
_ => builder.build_full(
|
||||
Role::Light => service::build_light(config).map(|(task_manager, _)| task_manager),
|
||||
_ => service::build_full(
|
||||
config,
|
||||
None,
|
||||
None,
|
||||
authority_discovery_disabled,
|
||||
6000,
|
||||
grandpa_pause,
|
||||
),
|
||||
).map(|r| r.0),
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user