Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed May 1, 2024
1 parent 2d4ef9e commit f53cef5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions iroh-cli/src/commands/gossip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,8 @@ impl GossipCommands {
GossipSubscribeResponse::Event(event) => {
if verbose {
println!("{:?}", event);
} else {
match event {
GossipEvent::Received(GossipMessage { content, .. }) => {
println!("{:?}", content);
}
_ => {}
}
} else if let GossipEvent::Received(GossipMessage { content, .. }) = event {
println!("{:?}", content);
}
}
GossipSubscribeResponse::Lagged => {
Expand Down
4 changes: 2 additions & 2 deletions iroh/src/gossip_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl GossipDispatcher {
// We are joining, so we need to wait with creating the update task.
//
// TODO: should we merge the bootstrap nodes and try to join with all of them?
peers.extend(msg.bootstrap.into_iter());
peers.extend(msg.bootstrap);
waiting.push((updates, send));
}
TopicState::Quitting {
Expand All @@ -345,7 +345,7 @@ impl GossipDispatcher {
..
} => {
// We are quitting, so we need to wait with creating the update task.
peers.extend(msg.bootstrap.into_iter());
peers.extend(msg.bootstrap);
waiting.push((updates, send));
}
TopicState::Live { live } => {
Expand Down

0 comments on commit f53cef5

Please sign in to comment.