mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-25 05:55:42 +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:
@@ -118,6 +118,10 @@ where
|
|||||||
T: ProvideRuntimeApi<Block>,
|
T: ProvideRuntimeApi<Block>,
|
||||||
T::Api: SessionKeys<Block>,
|
T::Api: SessionKeys<Block>,
|
||||||
{
|
{
|
||||||
|
if seeds.is_empty() {
|
||||||
|
return Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
let runtime_api = client.runtime_api();
|
let runtime_api = client.runtime_api();
|
||||||
|
|
||||||
for seed in seeds {
|
for seed in seeds {
|
||||||
|
|||||||
Reference in New Issue
Block a user