Skip to content
Snippets Groups Projects
Commit e429ef1d authored by Éloïs's avatar Éloïs Committed by GitHub
Browse files

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: default avatarBastian Köcher <git@kchr.de>

Co-authored-by: default avatarBastian Köcher <git@kchr.de>
parent 1b5d52de
No related merge requests found
......@@ -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 {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment