Skip to content

Commit

Permalink
fix: 新文件禁止拉取
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Aug 27, 2024
1 parent be576a4 commit 5c6fbff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class Server {
this.files = await Promise.all(fileTasks);
this.avroBytes = await Utilities.getAvroBytes(this.files);
console.log(`...file list was successfully updated. Found ${this.files.length} files`);
this.isUpdating = false;
if (checkClusters) {
for (const cluster of this.clusters.filter(c => c.isOnline)) {
const message = await Utilities.checkSpecfiedFiles(Utilities.findDifferences(oldFiles, this.files, true), cluster); // 只查找新增的文件,不然删文件会把全部节点踢了
Expand Down

0 comments on commit 5c6fbff

Please sign in to comment.