fix: reduce HTTP API timeout from 30s to 10s
This commit is contained in:
parent
eb6067b6a6
commit
49ed32308b
@ -81,7 +81,7 @@ export async function patchPart(
|
|||||||
"Authorization": auth,
|
"Authorization": auth,
|
||||||
},
|
},
|
||||||
body: JSON.stringify(body),
|
body: JSON.stringify(body),
|
||||||
signal: AbortSignal.timeout(30_000),
|
signal: AbortSignal.timeout(10_000),
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
@ -123,7 +123,7 @@ export async function deletePart(
|
|||||||
headers: {
|
headers: {
|
||||||
"Authorization": auth,
|
"Authorization": auth,
|
||||||
},
|
},
|
||||||
signal: AbortSignal.timeout(30_000),
|
signal: AbortSignal.timeout(10_000),
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user