mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
http: remove some ::log::debug statements
This commit is contained in:
parent
69c395a702
commit
0945e1dc6e
2 changed files with 0 additions and 12 deletions
|
|
@ -344,8 +344,6 @@ pub fn upsert_peer_and_get_response_peers<I: Ip>(
|
|||
valid_until,
|
||||
};
|
||||
|
||||
::log::debug!("peer: {:?}", peer);
|
||||
|
||||
let ip_or_key = request
|
||||
.key
|
||||
.map(Either::Right)
|
||||
|
|
@ -356,8 +354,6 @@ pub fn upsert_peer_and_get_response_peers<I: Ip>(
|
|||
ip_or_key,
|
||||
};
|
||||
|
||||
::log::debug!("peer map key: {:?}", peer_map_key);
|
||||
|
||||
let opt_removed_peer = match peer_status {
|
||||
PeerStatus::Leeching => {
|
||||
torrent_data.num_leechers += 1;
|
||||
|
|
@ -372,8 +368,6 @@ pub fn upsert_peer_and_get_response_peers<I: Ip>(
|
|||
PeerStatus::Stopped => torrent_data.peers.remove(&peer_map_key),
|
||||
};
|
||||
|
||||
::log::debug!("opt_removed_peer: {:?}", opt_removed_peer);
|
||||
|
||||
match opt_removed_peer.map(|peer| peer.status) {
|
||||
Some(PeerStatus::Leeching) => {
|
||||
torrent_data.num_leechers -= 1;
|
||||
|
|
@ -384,8 +378,6 @@ pub fn upsert_peer_and_get_response_peers<I: Ip>(
|
|||
_ => {}
|
||||
}
|
||||
|
||||
::log::debug!("peer request numwant: {:?}", request.numwant);
|
||||
|
||||
let response_peers = if let PeerStatus::Stopped = peer_status {
|
||||
Vec::new()
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue