mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
http and ws: fix build errors with --no-default-features
This commit is contained in:
parent
acabf1581f
commit
964636db7c
4 changed files with 16 additions and 7 deletions
|
|
@ -99,6 +99,7 @@ impl TorrentMaps {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "metrics")]
|
||||
pub fn update_torrent_metrics(&self) {
|
||||
self.ipv4.torrent_gauge.set(self.ipv4.torrents.len() as f64);
|
||||
self.ipv6.torrent_gauge.set(self.ipv6.torrents.len() as f64);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue