Skip to content

Commit

Permalink
feat: 恢复FORCE_NOOPEN参数
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Feb 7, 2024
1 parent 35fd21c commit 90f81f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ export class Cluster {
return
}
logger.info(`mismatch ${missingFiles.length} files, start syncing`)
if (process.env.FORCE_NOOPEN) {
syncConfig = {
concurrency: 1,
source: 'center',
}
}
logger.info(syncConfig, '同步策略')
const totalSize = sum(missingFiles.map((file) => file.size))
const bar = new ProgressBar('downloading [:bar] :current/:total eta:etas :percent :rateBps', {
Expand Down

0 comments on commit 90f81f4

Please sign in to comment.