Skip to content

Commit

Permalink
Merge pull request #50 from vnma0/cycle-up
Browse files Browse the repository at this point in the history
Cycle upgrade
  • Loading branch information
dungwinux authored Mar 5, 2019
2 parents ea4d551 + d69a9e2 commit 9b98476
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controller/submitCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ async function sendCode(source_code_path, user_id, prob_name) {
Console.log(err.message);
});

// Temporary trigger
reloadSubs();
setImmediate(() => reloadSubs());
// Second trigger: 45 seconds
setTimeout(() => reloadSubs(), 45000);
} catch (err) {
Console.log(err.message);
}
Expand Down

0 comments on commit 9b98476

Please sign in to comment.