silently time out weekly ranking
This commit is contained in:
parent
4af0a545f7
commit
c0ae451fcd
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue