Skip to content

Commit

Permalink
time for rendering failure increased to 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibek Shrestha committed Aug 8, 2021
1 parent 8c244b7 commit 9901580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/leetcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ const loader = setInterval(() => {
}, 1000);

/* Since we dont yet have callbacks/promises that helps to find out if things went bad */
/* we will start 6 seconds counter and even after that upload is not complete, then we conclude its failed */
/* we will start 10 seconds counter and even after that upload is not complete, then we conclude its failed */
function startUploadCountDown() {
uploadState.uploading = true;
uploadState['countdown'] = setTimeout(() => {
Expand All @@ -561,7 +561,7 @@ function startUploadCountDown() {
uploadState.uploading = false;
markUploadFailed();
}
}, 6000);
}, 10000);
}
/* start upload will inject a spinner on left side to the "Run Code" button */
function startUpload() {
Expand Down

0 comments on commit 9901580

Please sign in to comment.