mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquaticc ws: handle_announce_requests: add #[inline] to helper fn
This commit is contained in:
parent
499c04d621
commit
2d56ac7c21
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue