Skip to content

Commit 11ef598

Browse files
committed
Merge pull request #174 from forrest-mao/fix_uplaod_bug
fix bugs
2 parents 0b1ac2a + 5341b99 commit 11ef598

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qiniu/services/storage/uploader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ def upload(self):
161161
length = len(block)
162162
crc = crc32(block)
163163
ret, info = self.make_block(block, length, host)
164-
if ret is None and not info.need_retry:
164+
if ret is None and not info.need_retry():
165165
return ret, info
166-
if info.connect_failed:
166+
if info.connect_failed():
167167
host = config.get_default('default_up_host_backup')
168-
if info.need_retry or crc != ret['crc32']:
168+
if info.need_retry() or crc != ret['crc32']:
169169
ret, info = self.make_block(block, length, host)
170170
if ret is None or crc != ret['crc32']:
171171
return ret, info

0 commit comments

Comments
 (0)