mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-28 11:49:39 -05:00
fix periphery keys init when config.private_key is not explicitly defined.
This commit is contained in:
@@ -20,13 +20,14 @@ pub fn periphery_keys() -> &'static RotatableKeyPair {
|
||||
if let Some(private_key_spec) = config.private_key.as_deref() {
|
||||
RotatableKeyPair::from_private_key_spec(private_key_spec)
|
||||
} else {
|
||||
RotatableKeyPair::from_private_key_spec(
|
||||
RotatableKeyPair::from_private_key_spec(&format!(
|
||||
"file:{}",
|
||||
config
|
||||
.root_directory
|
||||
.join("keys/periphery.key")
|
||||
.to_str()
|
||||
.expect("Invalid root directory"),
|
||||
)
|
||||
.expect("Invalid root directory")
|
||||
))
|
||||
}
|
||||
.unwrap()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user