Skip to content

Commit 378ca10

Browse files
committed
print conn count
1 parent a16e454 commit 378ca10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/dcutr/src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
182182
Ok(Some(line)) = stdin.next_line() => {
183183
match line.trim() {
184184
"peers" => {
185+
info!("Connected peers: {}", swarm.network_info().num_peers());
185186
for peer in swarm.connected_peers() {
186187
info!(peer=%peer, "Connected peer");
187188
}

0 commit comments

Comments
 (0)