summaryrefslogtreecommitdiff
path: root/src/ui.rs
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-10-21 23:34:48 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-10-21 23:34:48 +0800
commitf7c278d77e8b4e63b63ef6976b4b22abef060cda (patch)
tree26184c1f81c3fee073adc6b67de8d85c04d93750 /src/ui.rs
parent3d0251cea297fefe7b87f3a50824e3eebc5337b7 (diff)
feat(cmd): list peers
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui.rs b/src/ui.rs
index df181f5..6dadf39 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -74,6 +74,18 @@ impl Ui {
)
.await;
}
+
+ if cmd[1] == "list" {
+ println!(
+ "{:#?}",
+ self.network
+ .upgrade()
+ .unwrap()
+ .lock()
+ .await
+ .peers
+ );
+ }
}
if cmd[0] == "fetch" {