-
Notifications
You must be signed in to change notification settings - Fork 263
resume upload part concurrently #440
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
Conversation
5f0dbd1
to
111422a
Compare
---------- | ||
up_token: str | ||
kwargs | ||
key, file_crc32, costume_vars, metadata |
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.
@lihsai0 costume
=> custom
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.
@lihsai0 file_crc32
=> crc32
file_name: str | ||
costume_vars: dict | ||
kwargs | ||
up_token, file_crc32 |
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.
@lihsai0 file_crc32
=> crc32
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.
标准库和 utils 里都有 crc32
这个名字,感觉容易混淆。
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.
file_crc32
=> crc32_int
mime_type: str | ||
metadata: dict | ||
file_name: str | ||
costume_vars: dict |
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.
@lihsai0 costume
=> custom
_ResumeUploadV2Context | ||
""" | ||
if not isinstance(context, _ResumeUploadV2Context): | ||
raise TypeError('context must be an instance of _ResumeUploadV1Context') |
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.
@lihsai0 _ResumeUploadV1Context
=> _ResumeUploadV2Context
qiniu/compat.py
Outdated
@@ -51,6 +51,13 @@ def s(data): | |||
def u(data): | |||
return unicode(data, 'unicode_escape') # noqa | |||
|
|||
def is_seekable(data): | |||
try: | |||
data.seek(0, 1) |
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.
@lihsai0 1
=> os.SEEK_CUR
|
||
Returns | ||
------- | ||
ret: dict |
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.
dict
=> _ResumeUploadV2Context
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #440 +/- ##
==========================================
- Coverage 76.06% 70.04% -6.02%
==========================================
Files 26 35 +9
Lines 2452 3108 +656
==========================================
+ Hits 1865 2177 +312
- Misses 587 931 +344
|
KODO-18759