mirror of
https://github.com/wahyd4/ruby-sdk.git
synced 2026-08-10 13:26:44 +10:00
修正一直重试上传出错片的Bug。
This commit is contained in:
@@ -230,6 +230,8 @@ module Qiniu
|
||||
break
|
||||
elsif i == retry_times && data["crc32"] != body_crc32
|
||||
Log.logger.error %Q(Uploading block error. Expected crc32: #{body_crc32}, but got: #{data["crc32"]})
|
||||
# 上传重试达到上限,直接返回错误
|
||||
return [code, data]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user