silently time out weekly ranking

This commit is contained in:
Thibault Duplessis 2017-08-03 18:52:42 +02:00
parent 4af0a545f7
commit c0ae451fcd

View file

@ -73,10 +73,10 @@ final class RankingApi(
private type Rank = Int
def of(userId: User.ID): Fu[Map[Perf.Key, Int]] =
def of(userId: User.ID): Fu[Map[Perf.Key, Rank]] =
lila.common.Future.traverseSequentially(PerfType.leaderboardable) { perf =>
cache.get(perf.id) map { _ get userId map (perf.key -> _) }
} map (_.flatten.toMap)
} map (_.flatten.toMap) nevermind
private val cache = asyncCache.multi[Perf.ID, Map[User.ID, Rank]](
name = "rankingApi.weeklyStableRanking",