Added a node name to init so we can run multiple nodes with stable identifiers
This commit is contained in:
@@ -10,10 +10,11 @@ pub(crate) struct SideNodeConfig {
|
||||
pub(crate) name: String,
|
||||
}
|
||||
|
||||
pub(crate) fn write_config_to_file(
|
||||
pub(crate) fn write(
|
||||
config: &SideNodeConfig,
|
||||
file_path: &PathBuf,
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
println!("Writing config to: {:?}", file_path);
|
||||
let toml_string = to_string(config)?;
|
||||
let mut file = File::create(file_path)?;
|
||||
file.write_all(toml_string.as_bytes())?;
|
||||
|
||||
Reference in New Issue
Block a user