-address fixes and changes per feedback from Matt and Brad
This commit is contained in:
@@ -12,7 +12,7 @@ import { useCachedSoundSrc } from "./usecachedSoundSrc";
|
||||
|
||||
async function fetchSighting(url: string | undefined, ref: number): Promise<SightingType> {
|
||||
const res = await fetch(`${url}${ref}`, {
|
||||
signal: AbortSignal.timeout(5000),
|
||||
signal: AbortSignal.timeout(300000),
|
||||
});
|
||||
if (!res.ok) throw new Error(String(res.status));
|
||||
return res.json();
|
||||
@@ -48,7 +48,7 @@ export function useSightingFeed(url: string | undefined) {
|
||||
return 100;
|
||||
}
|
||||
|
||||
if (now - lastValidTimestamp.current > 60_000) {
|
||||
if (now - lastValidTimestamp.current > 600_000) {
|
||||
currentRef.current = -1;
|
||||
lastValidTimestamp.current = now;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user