aboutsummaryrefslogtreecommitdiff
path: root/juick-api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-15 17:16:04 +0300
committerGravatar Vitaly Takmazov2018-01-15 17:16:04 +0300
commit10328bb6531af29a3da8d9121d7ba9434845a19b (patch)
treef08165f497349e783a59fc9232a674ef7c051c09 /juick-api
parent6aa90365cbb3cf8e88d986beefec6755c13b7f55 (diff)
api: top refresh rate is 1 hour
Diffstat (limited to 'juick-api')
-rw-r--r--juick-api/src/main/java/com/juick/api/TopManager.java2
1 files changed, 1 insertions, 1 deletions
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);