-
Notifications
You must be signed in to change notification settings - Fork 773
fix: unset the default value of totallimit #1121
Conversation
Could you please add more descriptions about why to submit this PR? |
Codecov Report
@@ Coverage Diff @@
## master #1121 +/- ##
==========================================
- Coverage 47.23% 47.22% -0.01%
==========================================
Files 116 116
Lines 7205 7204 -1
==========================================
- Hits 3403 3402 -1
Misses 3535 3535
Partials 267 267
Continue to review full report at Codecov.
|
@@ -96,7 +96,6 @@ func NewProperties() *Properties { | |||
LocalLimit: DefaultLocalLimit, | |||
MinRate: DefaultMinRate, | |||
ClientQueueSize: DefaultClientQueueSize, | |||
TotalLimit: DefaultTotalLimit, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then could you please delete the const value DefaultTotalLimit
?
In fact, dfdaemon will set a default totalLimit value for dfget. Should it be deleted? |
It's unnecessary to delete it from dfdaemon. The |
Signed-off-by: lowzj <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/LGTM
LGTM. |
fix: unset the default value of totallimit
Signed-off-by: sunwp <[email protected]>
Signed-off-by: lowzj [email protected]
Ⅰ. Describe what this PR did
The total limit of
dfget
is used to limit downloading speed of all the tasks on the same host. It's designed to be set by user explicitly, it should not be set by default. Otherwise it doesn't work if users only set flaglocallimit
but not settotallimit
.Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews