From 6527c504fb9a4221a671a66e088517f1d661be27 Mon Sep 17 00:00:00 2001 From: Youngjoon Lee Date: Tue, 12 Sep 2023 10:43:30 +0900 Subject: [PATCH] merge fixes --- nodes/nomos-node/src/config.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nodes/nomos-node/src/config.rs b/nodes/nomos-node/src/config.rs index 88eaeaedc..060c3284b 100644 --- a/nodes/nomos-node/src/config.rs +++ b/nodes/nomos-node/src/config.rs @@ -214,22 +214,23 @@ impl Config { } = network_args; if let Some(IpAddr::V4(h)) = host { - self.network.backend.host = h; + self.network.backend.inner.host = h; } else if host.is_some() { return Err(eyre!("Unsupported ip version")); } if let Some(port) = port { - self.network.backend.port = port as u16; + self.network.backend.inner.port = port as u16; } if let Some(node_key) = node_key { let mut key_bytes = hex::decode(node_key)?; - self.network.backend.node_key = SecretKey::try_from_bytes(key_bytes.as_mut_slice())?; + self.network.backend.inner.node_key = + SecretKey::try_from_bytes(key_bytes.as_mut_slice())?; } if let Some(peers) = initial_peers { - self.network.backend.initial_peers = peers; + self.network.backend.inner.initial_peers = peers; } Ok(self)