From 10328bb6531af29a3da8d9121d7ba9434845a19b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 15 Jan 2018 17:16:04 +0300 Subject: api: top refresh rate is 1 hour --- juick-api/src/main/java/com/juick/api/TopManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-api/src/main') diff --git a/juick-api/src/main/java/com/juick/api/TopManager.java b/juick-api/src/main/java/com/juick/api/TopManager.java index c762aa83..ddf8e092 100644 --- a/juick-api/src/main/java/com/juick/api/TopManager.java +++ b/juick-api/src/main/java/com/juick/api/TopManager.java @@ -31,7 +31,7 @@ public class TopManager { @Inject private MessagesService messagesService; - @Scheduled(fixedRate = 120000) + @Scheduled(fixedRate = 3600000) public void updateTop() { messagesService.getPopularCandidates().forEach(m -> { logger.info("added {} to popular", m); -- cgit v1.2.3