fix: timeout, retry 지정

This commit is contained in:
2023-02-28 00:44:59 +09:00
parent 4f0b18cc3c
commit e721642a10
+4
View File
@@ -119,6 +119,8 @@ export async function callSammoAPI<ResultType extends ValidResponse, ErrorType e
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
}, },
timeout: 30000,
retry: 0,
}); });
} }
return ky("api.php", { return ky("api.php", {
@@ -131,6 +133,8 @@ export async function callSammoAPI<ResultType extends ValidResponse, ErrorType e
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
}, },
timeout: 30000,
retry: 0,
}); });
})().json()) as ErrorType | ResultType; })().json()) as ErrorType | ResultType;