Skip to content

Commit

Permalink
fix: 去掉智能跳过
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroWolf233 authored Oct 21, 2024
1 parent 6c533ef commit 13a7f12
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,9 @@ export class Cluster {
public async syncFiles(fileList: IFileList, syncConfig: OpenbmclapiAgentConfiguration['sync']): Promise<void> {
const storageReady = await this.storage.check()
if (!storageReady) {
if (process.env.SKIP_SYNC) {
logger.info('存储异常,已跳过存储检查')
}else{
throw new Error('存储异常')
}
}
if (process.env.FORCE_SKIP_SYNC) {
if (process.env.SKIP_SYNC) {
logger.info('已强制跳过文件同步,在保活时您将无法看到保活的文件大小')
return
}
Expand Down

0 comments on commit 13a7f12

Please sign in to comment.