Skip to content

Commit

Permalink
fix: 同步成功后再修改本地文件列表,避免单次同步失败忽略部分文件
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Jun 3, 2024
1 parent 409d335 commit 9286e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export async function bootstrap(version: string): Promise<void> {
logger.debug('没有新文件')
return
}
lastFileList = fileList
const configuration = await cluster.getConfiguration()
await cluster.syncFiles(files, configuration.sync)
lastFileList = fileList
} finally {
checkFileInterval = setTimeout(() => {
checkFile(lastFileList).catch((e) => {
Expand Down

0 comments on commit 9286e9f

Please sign in to comment.