Skip to content

Commit 5a892bb

Browse files
committed
Fix typo and revert timeout max to 10s
1 parent 328c23a commit 5a892bb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/features/tokenPrice/PriceChartCelo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export function PriceChartCelo(props: PriceChartProps) {
2929

3030
const dispatch = useDispatch()
3131
useEffect(() => {
32-
// Hacking in a delay here b.c. blockscout is unreliable when two many
33-
// queries are submitted too fast
32+
// Hacking in a delay here b.c. blockscout is unreliable when
33+
// many queries are submitted too fast (overlaps with feed fetch)
3434
sleep(DELAY_BEFORE_QUERYING)
3535
.then(() => {
3636
dispatch(

src/utils/timeout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const useTimeout = (
6969
export async function fetchWithTimeout(
7070
resource: RequestInfo,
7171
options?: RequestInit,
72-
timeout = 12000
72+
timeout = 10000
7373
) {
7474
const controller = new AbortController()
7575
const id = setTimeout(() => controller.abort(), timeout)

0 commit comments

Comments
 (0)