This commit is contained in:
syuilo 2025-04-28 20:27:11 +09:00
parent 1b77f0d2b2
commit 8660c5261f
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ type TimelineQueryType = {
let tlNotesCount = 0;
const POLLING_INTERVAL = 1000 * 10;
const POLLING_INTERVAL = 1000 * 15;
if (!store.s.realtimeMode) {
useInterval(async () => {

View File

@ -26,7 +26,7 @@ const fetchEvent = new EventEmitter<{
const capturedNoteIdMapForPolling = new Map<string, number>();
const CAPTURE_MAX = 30;
const POLLING_INTERVAL = 1000 * 10;
const POLLING_INTERVAL = 1000 * 15;
window.setInterval(() => {
const ids = [...capturedNoteIdMapForPolling.keys()].sort((a, b) => (a > b ? -1 : 1)).slice(0, CAPTURE_MAX); // 新しいものを優先するためにIDで降順ソート