Changed the loglevel of annoying log message "we are choked" to debug
This commit is contained in:
parent
cc8011cf9a
commit
99c5830b97
1 changed files with 3 additions and 3 deletions
|
|
@ -368,7 +368,7 @@ impl TorrentState {
|
||||||
|
|
||||||
fn reserve_next_needed_piece(&self, peer_handle: PeerHandle) -> Option<ValidPieceIndex> {
|
fn reserve_next_needed_piece(&self, peer_handle: PeerHandle) -> Option<ValidPieceIndex> {
|
||||||
if self.am_i_choked(peer_handle)? {
|
if self.am_i_choked(peer_handle)? {
|
||||||
warn!("we are choked by {}, can't reserve next piece", peer_handle);
|
debug!("we are choked by {}, can't reserve next piece", peer_handle);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
let mut g = self.locked.write();
|
let mut g = self.locked.write();
|
||||||
|
|
@ -772,7 +772,7 @@ impl PeerHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn on_i_am_choked(&self, handle: PeerHandle) {
|
fn on_i_am_choked(&self, handle: PeerHandle) {
|
||||||
warn!("we are choked by {}", handle);
|
debug!("we are choked by {}", handle);
|
||||||
self.state
|
self.state
|
||||||
.locked
|
.locked
|
||||||
.write()
|
.write()
|
||||||
|
|
@ -804,7 +804,7 @@ impl PeerHandler {
|
||||||
loop {
|
loop {
|
||||||
match self.state.am_i_choked(handle) {
|
match self.state.am_i_choked(handle) {
|
||||||
Some(true) => {
|
Some(true) => {
|
||||||
warn!("we are choked by {}, can't reserve next piece", handle);
|
debug!("we are choked by {}, can't reserve next piece", handle);
|
||||||
#[allow(unused_must_use)]
|
#[allow(unused_must_use)]
|
||||||
{
|
{
|
||||||
timeout(Duration::from_secs(60), notify.notified()).await;
|
timeout(Duration::from_secs(60), notify.notified()).await;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue