mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_ws: run rustfmt
This commit is contained in:
parent
71c43aca47
commit
c02d7f2113
3 changed files with 5 additions and 10 deletions
|
|
@ -95,11 +95,7 @@ impl TorrentMaps {
|
||||||
Self::clean_torrent_map(config, &self.access_list, &mut self.ipv6);
|
Self::clean_torrent_map(config, &self.access_list, &mut self.ipv6);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn clean_torrent_map(
|
fn clean_torrent_map(config: &Config, access_list: &AccessList, torrent_map: &mut TorrentMap) {
|
||||||
config: &Config,
|
|
||||||
access_list: &AccessList,
|
|
||||||
torrent_map: &mut TorrentMap
|
|
||||||
) {
|
|
||||||
let now = Instant::now();
|
let now = Instant::now();
|
||||||
|
|
||||||
torrent_map.retain(|info_hash, torrent_data| {
|
torrent_map.retain(|info_hash, torrent_data| {
|
||||||
|
|
@ -133,7 +129,6 @@ impl TorrentMaps {
|
||||||
|
|
||||||
torrent_map.shrink_to_fit();
|
torrent_map.shrink_to_fit();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,7 @@ impl Connection {
|
||||||
eprintln!("received error response: {:?}", response.failure_reason);
|
eprintln!("received error response: {:?}", response.failure_reason);
|
||||||
|
|
||||||
self.can_send = true;
|
self.can_send = true;
|
||||||
},
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
eprintln!("error deserializing offer: {:?}", err);
|
eprintln!("error deserializing offer: {:?}", err);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue