only randomly delay start of official tournaments - for #6261

pull/9913/head
Thibault Duplessis 2021-10-02 10:09:48 +02:00
parent 4977e40272
commit fb7f6668d2
1 changed files with 1 additions and 4 deletions

View File

@ -190,10 +190,7 @@ object Tournament {
noBerserk = !berserkable,
noStreak = !streakable,
schedule = None,
startsAt = startDate match {
case Some(startDate) => startDate plusSeconds ThreadLocalRandom.nextInt(60)
case None => DateTime.now plusMinutes waitMinutes
},
startsAt = startDate | DateTime.now.plusMinutes(waitMinutes),
description = description,
hasChat = hasChat
)