From a55edf04083fadc747a91996006816ff5d2b2317 Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <773861846@qq.com> Date: Mon, 25 May 2020 21:37:00 +0800 Subject: [PATCH] =?UTF-8?q?es=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/java2nb/novel/core/schedule/BookToEsSchedule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/novel-front/src/main/java/com/java2nb/novel/core/schedule/BookToEsSchedule.java b/novel-front/src/main/java/com/java2nb/novel/core/schedule/BookToEsSchedule.java index d6e4486..d2dcda5 100644 --- a/novel-front/src/main/java/com/java2nb/novel/core/schedule/BookToEsSchedule.java +++ b/novel-front/src/main/java/com/java2nb/novel/core/schedule/BookToEsSchedule.java @@ -44,9 +44,9 @@ public class BookToEsSchedule { /** - * 10秒钟导入一次 + * 1分钟导入一次 */ - @Scheduled(fixedRate = 1000 * 10) + @Scheduled(fixedRate = 1000 * 60) public void saveToEs() { if (cacheService.get(CacheKey.ES_TRANS_LOCK) == null) { cacheService.set(CacheKey.ES_TRANS_LOCK, "1", 60 * 5);