Skip to content

Commit

Permalink
fix: some highlighted markdown content not synced
Browse files Browse the repository at this point in the history
* The highlightedMarkdown was not yet uploaded when downloading so we should wait until the uploading to complete
* Increase the download timeout to 10 mins
  • Loading branch information
sywhb committed Jul 12, 2024
1 parent 69a8621 commit bc84e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const fetchContentForItems = async (
item.content = await Promise.race([
downloadFromUrl(c.downloadUrl),
new Promise<string>(
(_, reject) => setTimeout(() => reject('Timeout'), 60_000), // 60 seconds
(_, reject) => setTimeout(() => reject('Timeout'), 600_000), // 10 minutes
),
])
}),
Expand Down

0 comments on commit bc84e26

Please sign in to comment.