Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunwangs committed Oct 3, 2024
1 parent ccaa7d3 commit 0728851
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions streamer/src/nonblocking/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,17 +404,15 @@ async fn run_server(
continue;
}

let client_connection_tracker =
match ClientConnectionTracker::new(stats.clone(), max_concurrent_connections) {
Ok(client_connection_tracker) => client_connection_tracker,
Err(_) => {
stats
.refused_connections_too_many_open_connections
.fetch_add(1, Ordering::Relaxed);
incoming.refuse();
continue;
}
};
let Ok(client_connection_tracker) =
ClientConnectionTracker::new(stats.clone(), max_concurrent_connections)
else {
stats
.refused_connections_too_many_open_connections
.fetch_add(1, Ordering::Relaxed);
incoming.refuse();
continue;
};

stats
.outstanding_incoming_connection_attempts
Expand Down

0 comments on commit 0728851

Please sign in to comment.