Skip to content

Commit 72b4b4b

Browse files
committed
Merge pull request #54 from longbai/remove-retry
remove useless retry
2 parents d30097e + 7493d93 commit 72b4b4b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/com/qiniu/io/IO.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import com.qiniu.utils.MultipartEntity;
2222
import com.qiniu.utils.FileUri;
2323
import com.qiniu.utils.QiniuException;
24-
import com.qiniu.utils.RetryRet;
2524

2625
public class IO {
2726

@@ -97,17 +96,7 @@ public void onFailure(QiniuException ex) {
9796
}
9897
});
9998

100-
CallRet retryRet = new RetryRet(ret){
101-
@Override
102-
public void onFailure(QiniuException ex) {
103-
if (ex.code/100 == 4 || ex.code == 579) {
104-
ret.onFailure(ex);
105-
return;
106-
}
107-
client.call(executor, Conf.UP_HOST2, m, ret);
108-
}
109-
};
110-
client.call(executor, Conf.UP_HOST, m, retryRet);
99+
client.call(executor, Conf.UP_HOST, m, ret);
111100
}
112101

113102
/**

0 commit comments

Comments
 (0)