aquaticc ws: handle_announce_requests: add #[inline] to helper fn

This commit is contained in:
Joakim Frostegård 2020-05-12 12:29:05 +02:00
parent 499c04d621
commit 2d56ac7c21

View file

@ -146,6 +146,7 @@ pub fn handle_announce_requests(
if let Some(offers) = request.offers {
let max_num_peers_to_take = offers.len().min(10); // FIXME: config
#[inline]
fn f(peer: &Peer) -> Peer {
*peer
}