diff --git a/crates/synor-storage/src/bin/storage-node.rs b/crates/synor-storage/src/bin/storage-node.rs index 1d56532..c716d63 100644 --- a/crates/synor-storage/src/bin/storage-node.rs +++ b/crates/synor-storage/src/bin/storage-node.rs @@ -20,15 +20,13 @@ async fn main() -> Result<(), Box> { let config_path = args .iter() .position(|a| a == "--config") - .map(|i| args.get(i + 1)) - .flatten() + .and_then(|i| args.get(i + 1)) .cloned(); let data_dir = args .iter() .position(|a| a == "--data-dir") - .map(|i| args.get(i + 1)) - .flatten() + .and_then(|i| args.get(i + 1)) .cloned() .unwrap_or_else(|| "./synor-storage-data".to_string()); diff --git a/crates/synor-storage/src/node/network.rs b/crates/synor-storage/src/node/network.rs index 17374b7..7be525e 100644 --- a/crates/synor-storage/src/node/network.rs +++ b/crates/synor-storage/src/node/network.rs @@ -107,7 +107,7 @@ impl StorageNetwork { /// Start the network #[cfg(feature = "node")] - pub async fn start(&mut self, listen_addrs: &[String], bootstrap: &[String]) -> Result<()> { + pub async fn start(&mut self, _listen_addrs: &[String], _bootstrap: &[String]) -> Result<()> { self.state = NetworkState::Bootstrapping; // TODO: Initialize libp2p swarm