mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +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 {
|
if let Some(offers) = request.offers {
|
||||||
let max_num_peers_to_take = offers.len().min(10); // FIXME: config
|
let max_num_peers_to_take = offers.len().min(10); // FIXME: config
|
||||||
|
|
||||||
|
#[inline]
|
||||||
fn f(peer: &Peer) -> Peer {
|
fn f(peer: &Peer) -> Peer {
|
||||||
*peer
|
*peer
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue