wip
This commit is contained in:
parent
1b77f0d2b2
commit
8660c5261f
|
|
@ -107,7 +107,7 @@ type TimelineQueryType = {
|
||||||
|
|
||||||
let tlNotesCount = 0;
|
let tlNotesCount = 0;
|
||||||
|
|
||||||
const POLLING_INTERVAL = 1000 * 10;
|
const POLLING_INTERVAL = 1000 * 15;
|
||||||
|
|
||||||
if (!store.s.realtimeMode) {
|
if (!store.s.realtimeMode) {
|
||||||
useInterval(async () => {
|
useInterval(async () => {
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ const fetchEvent = new EventEmitter<{
|
||||||
const capturedNoteIdMapForPolling = new Map<string, number>();
|
const capturedNoteIdMapForPolling = new Map<string, number>();
|
||||||
|
|
||||||
const CAPTURE_MAX = 30;
|
const CAPTURE_MAX = 30;
|
||||||
const POLLING_INTERVAL = 1000 * 10;
|
const POLLING_INTERVAL = 1000 * 15;
|
||||||
|
|
||||||
window.setInterval(() => {
|
window.setInterval(() => {
|
||||||
const ids = [...capturedNoteIdMapForPolling.keys()].sort((a, b) => (a > b ? -1 : 1)).slice(0, CAPTURE_MAX); // 新しいものを優先するためにIDで降順ソート
|
const ids = [...capturedNoteIdMapForPolling.keys()].sort((a, b) => (a > b ? -1 : 1)).slice(0, CAPTURE_MAX); // 新しいものを優先するためにIDで降順ソート
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue