[Change] CacheStoreCentral 调整代码以为后续更改做准备;

[Change] BotCommandProcess, ImageCacheHandler, PreLoadDataComparator, RandomRankingArtworksSender 适配CacheStoreCentral的更改;
This commit is contained in:
2020-06-10 20:21:23 +08:00
parent bfe25c2012
commit 97d06c4fc3
5 changed files with 57 additions and 39 deletions

View File

@ -80,7 +80,7 @@ public class ImageCacheHandler implements EventHandler {
);
bufferInputStream.reset();
Streams.copy(bufferInputStream, fileOutputStream, false);
CacheStoreCentral.setImageChecksum(imageChecksum);
CacheStoreCentral.getCentral().setImageChecksum(imageChecksum);
} catch (IOException e) {
log.error("下载图片时发生异常", e);
throw e;