feat(dragonfly-client): add logs for finished piece from local (#1147)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
5bc3a0a6dd
commit
c11f533637
|
|
@ -149,7 +149,7 @@ fn default_download_piece_timeout() -> Duration {
|
|||
/// default_download_concurrent_piece_count is the default number of concurrent pieces to download.
|
||||
#[inline]
|
||||
fn default_download_concurrent_piece_count() -> u32 {
|
||||
16
|
||||
8
|
||||
}
|
||||
|
||||
/// default_download_max_schedule_count is the default max count of schedule.
|
||||
|
|
|
|||
|
|
@ -422,6 +422,7 @@ impl Piece {
|
|||
// If the piece is downloaded by the other thread,
|
||||
// return the piece directly.
|
||||
if piece.is_finished() {
|
||||
info!("finished piece {} from local", piece_id);
|
||||
return Ok(piece);
|
||||
}
|
||||
|
||||
|
|
@ -525,6 +526,7 @@ impl Piece {
|
|||
// If the piece is downloaded by the other thread,
|
||||
// return the piece directly.
|
||||
if piece.is_finished() {
|
||||
info!("finished piece {} from local", piece_id);
|
||||
return Ok(piece);
|
||||
}
|
||||
|
||||
|
|
@ -789,6 +791,7 @@ impl Piece {
|
|||
// If the piece is downloaded by the other thread,
|
||||
// return the piece directly.
|
||||
if piece.is_finished() {
|
||||
info!("finished persistent cache piece {} from local", piece_id);
|
||||
return Ok(piece);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue