reduce getTextNodesBetween timeout to 60 seconds

This commit is contained in:
Hongbo Wu
2024-04-23 21:28:02 +08:00
parent 002e455bbd
commit 3fb7193fb5

View File

@ -49,7 +49,7 @@ type FillNodeResponse = {
}
function getTextNodesBetween(rootNode: Node, startNode: Node, endNode: Node) {
const maxTime = 1000 * 60 * 10 // 10 minutes
const maxTime = 1000 * 60 // 60 seconds
const start = Date.now()
let textNodeStartingPoint = 0
let articleText = ''