mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-24 12:45:04 +00:00
perf: generate_initial_session_keys: load runtime only if its relevant (#12651)
* perf: generate_initial_session_keys: load runtime only if its relevant * apply review suggestion * Update primitives/session/src/lib.rs Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
1 parent
1b5d52deb2
commit
e429ef1d95
1 file changed
+4
@@ -118,6 +118,10 @@ where
|
||||
T: ProvideRuntimeApi<Block>,
|
||||
T::Api: SessionKeys<Block>,
|
||||
{
|
||||
if seeds.is_empty() {
|
||||
return Ok(())
|
||||
}
|
||||
|
||||
let runtime_api = client.runtime_api();
|
||||
|
||||
for seed in seeds {
|
||||
|
||||
Reference in new issue
Block a user