udp: statistics: show number of torrents and access list len

This commit is contained in:
Joakim Frostegård 2021-11-19 12:04:16 +01:00
parent 31e44db469
commit 59e95894b9
7 changed files with 84 additions and 9 deletions

View file

@ -77,6 +77,10 @@ impl AccessList {
AccessListMode::Off => true,
}
}
pub fn len(&self) -> usize {
self.0.len()
}
}
pub trait AccessListQuery {