Skip to content

Commit b0dffad

Browse files
author
Raphaël Droz
committed
Revert "async-read: readFileFn kept upload retries from happening"
This reverts commit e05f40d. retry in async mode was actually already handled inside readStreamChunk() itself
1 parent e05f40d commit b0dffad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/FlowChunk.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,7 @@ export default class FlowChunk {
388388
}
389389
}
390390

391-
// If chunk already read (state = 2) and pendingRetry is true, then only the upload must be retried.
392-
if (asyncRead && !this.pendingRetry) {
391+
if (asyncRead) {
393392
await this.readStreamChunk();
394393
return;
395394
}

0 commit comments

Comments
 (0)