Ron Au commited on
Commit
3f5ff9d
1 Parent(s): 5fff1c6

feat(polling): Reduce interval from 10s to 5s

Browse files
Files changed (1) hide show
  1. static/js/network.js +1 -1
static/js/network.js CHANGED
@@ -31,7 +31,7 @@ const pollTask = async (task) => {
31
  return await taskResponse.json();
32
  };
33
 
34
- const longPollTask = async (task, interval = 10_000, max) => {
35
  const etaDisplay = document.querySelector('.eta');
36
 
37
  task = await pollTask(task);
 
31
  return await taskResponse.json();
32
  };
33
 
34
+ const longPollTask = async (task, interval = 5_000, max) => {
35
  const etaDisplay = document.querySelector('.eta');
36
 
37
  task = await pollTask(task);