aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index a725174..a6f2937 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -76,11 +76,14 @@ async fn main() -> Result<()> {
.context("node-key-file is required")?;
let node_key = Arc::new(identity::NodeKey::load(
node_key_file,
- args.create_node_key,
+ args.node_key_create,
)?);
info!(node_id = %node_key.id(), "Node identity");
let swarm_key = match &args.swarm_key_file {
- Some(path) => Some(Arc::new(swarm::auth::SwarmKey::from_file(path)?)),
+ Some(path) => Some(Arc::new(swarm::auth::SwarmKey::from_file(
+ path,
+ args.swarm_key_create,
+ )?)),
None => {
warn!("No swarm key: any node that can reach a member may join");
None