Bump up retries

Slow servers are slow.
This commit is contained in:
Lim Chee Aun 2023-01-26 21:02:39 +08:00
parent dda83c7834
commit 6a7e7085bd

View file

@ -90,10 +90,10 @@ function StatusPage() {
(async () => { (async () => {
const heroFetch = () => const heroFetch = () =>
pRetry(() => masto.v1.statuses.fetch(id), { pRetry(() => masto.v1.statuses.fetch(id), {
retries: 3, retries: 4,
}); });
const contextFetch = pRetry(() => masto.v1.statuses.fetchContext(id), { const contextFetch = pRetry(() => masto.v1.statuses.fetchContext(id), {
retries: 2, retries: 8,
}); });
const hasStatus = !!snapStates.statuses[id]; const hasStatus = !!snapStates.statuses[id];