Skip to content

feat: updates the task ID calculation logic in the Download #485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

gaius-qi
Copy link
Member

Description

This pull request includes a version bump for the dragonfly-api package and updates to the logic for calculating task IDs in the Download struct across multiple files. The changes ensure that piece_length is now included as a factor in task ID calculation.

Version update:

  • Cargo.toml: Updated the dragonfly-api package version from 2.1.37 to 2.1.38.

Task ID calculation updates:

  • pkg/apis/common/v2/common.pb.go: Updated the comment for the ContentForCalculatingTaskId field in the Download struct to include piece_length as a factor in task ID calculation.
  • pkg/apis/common/v2/common.proto: Modified the documentation for the content_for_calculating_task_id field in the Download message to reflect the inclusion of piece_length.
  • proto/common.proto: Updated the comment for the content_for_calculating_task_id field in the Download message to include piece_length.
  • src/common.v2.rs: Adjusted the comment for the content_for_calculating_task_id field in the Download struct to account for piece_length in task ID calculation.

Related Issue

Motivation and Context

Signed-off-by: Gaius <gaius.qi@gmail.com>
@gaius-qi gaius-qi added the enhancement New feature or request label Apr 24, 2025
@gaius-qi gaius-qi self-assigned this Apr 24, 2025
@gaius-qi gaius-qi requested a review from a team as a code owner April 24, 2025 09:02
Copy link

@Liam-Zhao Liam-Zhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@Liam-Zhao Liam-Zhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@Liam-Zhao Liam-Zhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@Liam-Zhao Liam-Zhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@Liam-Zhao Liam-Zhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@Liam-Zhao Liam-Zhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@Liam-Zhao Liam-Zhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@Liam-Zhao Liam-Zhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gaius-qi gaius-qi merged commit 18ebde9 into main Apr 24, 2025
5 checks passed
@gaius-qi gaius-qi deleted the feature/piece branch April 24, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants