Commit f0106844 authored by 刘基明's avatar 刘基明

Merge branch 'bugfix_1208' into 'master'

topic锁

See merge request !35
parents a4b60721 75ec6c2c
...@@ -219,7 +219,10 @@ public class RankService { ...@@ -219,7 +219,10 @@ public class RankService {
.collect(Collectors.toList()); .collect(Collectors.toList());
//落库 //落库
rankLogService.logTopicRank(rankList, start, TimeUtils.calMillisTillNow(start)); if (redisCache.setIfAbsent("logTopicRank", "1", 60)) {
rankLogService.logTopicRank(rankList, start, TimeUtils.calMillisTillNow(start));
redisCache.evict("logTopicRank");
}
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment