Skip to content

Commit

Permalink
Whitespace corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
bartnv committed Sep 2, 2024
1 parent c985733 commit 94f6940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ pub async fn run(config: Arc<RwLock<Config>>, mut socket: net::TcpStream, ctrltx
}
let config = config.read().unwrap();
if from != myname && !config.nodes.iter().any(|node| node.name == from) {
frames.push(build_frame(&sbox, Protocol::Node{ name: from.clone(), pubkey: String::new() }));
frames.push(build_frame(&sbox, Protocol::Node { name: from.clone(), pubkey: String::new() }));
}
if to != myname && !config.nodes.iter().any(|node| node.name == to) {
frames.push(build_frame(&sbox, Protocol::Node{ name: to.clone(), pubkey: String::new() }));
frames.push(build_frame(&sbox, Protocol::Node { name: to.clone(), pubkey: String::new() }));
}
if conn.state == ConnState::Encrypted { // Buffer links received before Sync
links.push((from, to, seq));
Expand Down

0 comments on commit 94f6940

Please sign in to comment.