feat: rename remote peer to parent #901
Merged
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 primarily involves renaming various functions, structs, and comments to replace references to "remote peer" with "parent" in the
dragonfly-client
project. The changes span multiple files and affect error handling, documentation, and function names to ensure consistency with the new terminology.Renaming for Consistency:
dragonfly-client-core/src/error/errors.rs
: RenamedDownloadFromRemotePeerFailed
struct toDownloadFromParentFailed
and updated associated error messages.dragonfly-client-core/src/error/mod.rs
: Updated references toDownloadFromRemotePeerFailed
toDownloadFromParentFailed
in error definitions and usage. [1] [2]dragonfly-client-storage/src/lib.rs
: Renamed functiondownload_piece_from_remote_peer_finished
todownload_piece_from_parent_finished
.dragonfly-client/src/grpc/dfdaemon_upload.rs
: Updated function names and comments to replace "remote peer" with "parent" inDfdaemonUpload
andDfdaemonUploadClient
implementations. [1] [2] [3] [4]dragonfly-client/src/resource/persistent_cache_task.rs
: Updated function names and comments to replace "remote peer" with "parent" inPersistentCacheTask
implementation. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]dragonfly-client/src/resource/piece.rs
: Renamed functiondownload_from_remote_peer
todownload_from_parent
and updated comments accordingly. [1] [2]dragonfly-client/src/resource/piece_collector.rs
: Updated comments and function names to replace "remote peer" with "parent" inPieceCollector
implementation. [1] [2] [3]dragonfly-client/src/resource/task.rs
: Updated function names and comments to replace "remote peer" with "parent" inTask
implementation. [1] [2] [3] [4]Related Issue
Motivation and Context
Screenshots (if appropriate)