feat(dragonfly-client): add logs for finished piece from local #1147
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request includes changes to optimize download behavior and improve logging in the
dragonfly-client
project. The most important changes involve reducing the default concurrent piece download count and adding logging for completed pieces.Download behavior optimization:
dragonfly-client-config/src/dfdaemon.rs
: Reduced the default number of concurrent pieces to download from16
to8
to optimize resource usage and potentially improve stability.Logging improvements:
dragonfly-client/src/resource/piece.rs
: Addedinfo
log statements to indicate when a piece or a persistent cache piece is finished and retrieved locally. This change appears in three locations within theimpl Piece
block. [1] [2] [3]Related Issue
Motivation and Context
Screenshots (if appropriate)