web: reduce polling interval
The operations will usually take half a second.
This commit is contained in:
@ -55,7 +55,7 @@ export default function OperationStatusPage() {
|
|||||||
|
|
||||||
fetchOperation();
|
fetchOperation();
|
||||||
if (!intervalRef.current) {
|
if (!intervalRef.current) {
|
||||||
intervalRef.current = setInterval(fetchOperation, 5000);
|
intervalRef.current = setInterval(fetchOperation, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
Reference in New Issue
Block a user