Skip to content

Commit a1d12f5

Browse files
committed
always get broadcast round viewer count
1 parent 3db0720 commit a1d12f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/relay/src/main/RelayStatsApi.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ final class RelayStatsApi(colls: RelayColls, viewerCount: lila.memo.ViewerCountA
2020
viewerCount.hit(rt.round.id.value, maxCount)(ctx.req, ctx.userId)
2121

2222
def get(rt: RelayRound.WithTour): Fu[Int] =
23-
maxCountIfRecent(rt).nonEmpty.so:
24-
rt.tour.official.so(viewerCount.get(rt.round.id.value))
23+
rt.tour.official.so(viewerCount.get(rt.round.id.value))
2524

2625
private def maxCountIfRecent(rt: RelayRound.WithTour) =
2726
rt.tour.tier

0 commit comments

Comments
 (0)