Added a node name to init so we can run multiple nodes with stable identifiers
This commit is contained in:
@@ -13,7 +13,7 @@ pub(crate) fn setup() -> String {
|
||||
}
|
||||
|
||||
/// Writes a PEM-encoded string to a file at key_path.
|
||||
pub(crate) fn write_pem(key_path: PathBuf, pem: String) -> Result<(), std::io::Error> {
|
||||
pub(crate) fn write(key_path: PathBuf, pem: String) -> Result<(), std::io::Error> {
|
||||
println!("Writing key to: {:?}", key_path);
|
||||
let mut file = File::create(key_path)?;
|
||||
file.write(pem.to_string().as_bytes())?;
|
||||
|
||||
Reference in New Issue
Block a user