不要打那么多日志了

This commit is contained in:
2022-07-27 09:35:04 +08:00
parent 880b129e63
commit 739cc87131
2 changed files with 2 additions and 6 deletions

View File

@ -248,7 +248,7 @@ def upload_chunk(upload_url, server_file_name, local_file_name, chunk_data, chun
return False
def upload_video_part(access_token, sid, mid, video_part: VideoPart, max_retry=5, cb=None):
def upload_video_part(access_token, sid, mid, video_part: VideoPart, max_retry=5):
"""
upload a video file.
Args:
@ -297,7 +297,6 @@ def upload_video_part(access_token, sid, mid, video_part: VideoPart, max_retry=5
with open(local_file_name, 'rb') as f:
for chunk_id in range(0, chunk_total_num):
chunk_data = f.read(CHUNK_SIZE)
cb(video_part, chunk_id, chunk_total_num)
status = Retry(max_retry=max_retry, success_return_value=True).run(
upload_chunk,
upload_url,