mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
aquatic_udp: add todo comments
This commit is contained in:
parent
80754ab4ad
commit
f28808b30c
2 changed files with 5 additions and 6 deletions
|
|
@ -21,10 +21,11 @@ pub fn run_request_worker(
|
|||
|
||||
let mut rng = SmallRng::from_entropy();
|
||||
|
||||
// Need to be cleaned periodically: use timer?
|
||||
let mut torrents_ipv4 = TorrentMap::<Ipv4Addr>::default();
|
||||
let mut torrents_ipv6 = TorrentMap::<Ipv6Addr>::default();
|
||||
|
||||
// Needs to be updated periodically
|
||||
// Needs to be updated periodically: use timer?
|
||||
let peer_valid_until = ValidUntil::new(config.cleaning.max_peer_age);
|
||||
|
||||
while let Some((request, addr)) = request_receiver.recv().await {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue