轮询间隔改1S
This commit is contained in:
@@ -133,7 +133,7 @@ async function doFlush() {
|
|||||||
await flushIndex()
|
await flushIndex()
|
||||||
// 轮询刷盘状态,直到完成
|
// 轮询刷盘状态,直到完成
|
||||||
while (true) {
|
while (true) {
|
||||||
await new Promise(r => setTimeout(r, 500)) // 等待 500ms
|
await new Promise(r => setTimeout(r, 1000)) // 等待 1s
|
||||||
const status = await fetchFlushStatus()
|
const status = await fetchFlushStatus()
|
||||||
if (!status.flushing) break
|
if (!status.flushing) break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user