Reduce interval to 15s

This commit is contained in:
Lim Chee Aun 2023-11-06 09:44:46 +08:00
parent f73a942b61
commit 6e3494488a
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ import useInterval from '../utils/useInterval';
import usePageVisibility from '../utils/usePageVisibility'; import usePageVisibility from '../utils/usePageVisibility';
const STREAMING_TIMEOUT = 1000 * 3; // 3 seconds const STREAMING_TIMEOUT = 1000 * 3; // 3 seconds
const POLL_INTERVAL = 1000 * 60; // 1 minute const POLL_INTERVAL = 15_000; // 15 seconds
export default memo(function BackgroundService({ isLoggedIn }) { export default memo(function BackgroundService({ isLoggedIn }) {
// Notifications service // Notifications service

View file

@ -36,7 +36,7 @@ function Timeline({
boostsCarousel, boostsCarousel,
fetchItems = () => {}, fetchItems = () => {},
checkForUpdates = () => {}, checkForUpdates = () => {},
checkForUpdatesInterval = 60_000, // 1 minute checkForUpdatesInterval = 15_000, // 15 seconds
headerStart, headerStart,
headerEnd, headerEnd,
timelineStart, timelineStart,