We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b1ac2a + 5341b99 commit 11ef598Copy full SHA for 11ef598
qiniu/services/storage/uploader.py
@@ -161,11 +161,11 @@ def upload(self):
161
length = len(block)
162
crc = crc32(block)
163
ret, info = self.make_block(block, length, host)
164
- if ret is None and not info.need_retry:
+ if ret is None and not info.need_retry():
165
return ret, info
166
- if info.connect_failed:
+ if info.connect_failed():
167
host = config.get_default('default_up_host_backup')
168
- if info.need_retry or crc != ret['crc32']:
+ if info.need_retry() or crc != ret['crc32']:
169
170
if ret is None or crc != ret['crc32']:
171
0 commit comments