From 2262ba1c8e3ef08bf759a9f490f161b376a650c2 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Fri, 24 Nov 2023 09:41:04 +1100 Subject: [PATCH] feat(cli): peers displayed as list --- sn_cli/src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sn_cli/src/main.rs b/sn_cli/src/main.rs index f2230322b5..293ec3116f 100644 --- a/sn_cli/src/main.rs +++ b/sn_cli/src/main.rs @@ -87,10 +87,11 @@ async fn main() -> Result<()> { let bootstrap_peers = parse_peers_args(opt.peers).await?; - println!( - "Connecting to the network w/peers: {:?}...", - bootstrap_peers - ); + println!("Connecting to the network w/peers:"); + for peer in &bootstrap_peers { + println!("{}", peer); + } + let bootstrap_peers = if bootstrap_peers.is_empty() { // empty vec is returned if `local-discovery` flag is provided None