mirror of
https://github.com/Geniusay/ChopperBot.git
synced 2026-05-28 17:40:28 +08:00
v1.0.3一些bug修改和一些模块重构优化
This commit is contained in:
@@ -75,6 +75,10 @@ public class FileCacheManager {
|
||||
return false;
|
||||
}
|
||||
|
||||
public List<FileCache> getRunnableFileCaches(){
|
||||
return this.fileCaches;
|
||||
}
|
||||
|
||||
class Watcher implements Runnable{
|
||||
|
||||
@Override
|
||||
@@ -85,7 +89,7 @@ public class FileCacheManager {
|
||||
BlockingQueue fileChannel = cache.getFileChannel();
|
||||
if(fileChannel.isEmpty()){
|
||||
if(cache.needAutoSync()){
|
||||
logger.debug("检测到需要强制刷新的文件 {}",cache.getFileName());
|
||||
logger.info("检测到需要强制刷新的文件 {}",cache.getFileName());
|
||||
autoSyncer.submit(new AutoSyncer(cache));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user