Skip to content

Commit

Permalink
fix: bump timeout from 10ms to 10000ms/10s
Browse files Browse the repository at this point in the history
  • Loading branch information
doamatto committed Apr 20, 2024
1 parent edf0096 commit 9190309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function getIcon(product: Product) {
for (const hostname of product.hostnames) {
try {
const homeUrl = "http://" + hostname;
const response = await axios.get(homeUrl, { timeout: 10 });
const response = await axios.get(homeUrl, { timeout: 10000 });
const soup = new JSSoup(response.data);
for (const link of soup.findAll("link")) {
if (
Expand Down Expand Up @@ -89,7 +89,7 @@ async function getIcon(product: Product) {
const icon = await axios
.get(iconUrl, {
responseType: "arraybuffer",
timeout: 10,
timeout: 10000,
})
.then((response) => Buffer.from(response.data, "binary"));
const dimensions = sizeOf(icon);
Expand Down

0 comments on commit 9190309

Please sign in to comment.