Check every 2s

This commit is contained in:
Div Arora authored and Div Arora committed 2022-01-13 05:32:10 +08:00
1 parent 3000c3bbe3
commit a96ba276bc
1 file changed
+2 -2
@@ -40,8 +40,8 @@ const ProjectBuildingState: React.FC<ProjectBuildingState> = () => {
}
React.useEffect(() => {
// check server status every 1s
checkServerInterval.current = window.setInterval(checkServer, 10000)
// check server status every 2s
checkServerInterval.current = window.setInterval(checkServer, 2000)
return () => {
clearInterval(checkServerInterval.current)
}