We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d4f448 commit 7cc8d86Copy full SHA for 7cc8d86
1 file changed
crates/common/src/signer/loader.rs
@@ -57,9 +57,7 @@ impl SignerLoader {
57
pub fn load_from_env(self) -> eyre::Result<Vec<ConsensusSigner>> {
58
Ok(match self {
59
SignerLoader::File { key_path } => {
60
- let path = load_env_var(SIGNER_KEYS_ENV).unwrap_or(
61
- key_path.to_str().ok_or_eyre("Missing signer key path")?.to_string(),
62
- );
+ let path = load_env_var(SIGNER_KEYS_ENV).map(PathBuf::from).unwrap_or(key_path);
63
let file = std::fs::read_to_string(path)
64
.unwrap_or_else(|_| panic!("Unable to find keys file"));
65
0 commit comments