Merge branch 'master' of github.com:ornicar/lila

* 'master' of github.com:ornicar/lila:
  fix relay round sync log rotation
deepcrayonfish^2
Thibault Duplessis 2021-11-28 16:05:42 +01:00
commit ce6129dbd9
1 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,10 @@ case class SyncLog(events: Vector[SyncLog.Event]) extends AnyVal {
def add(event: SyncLog.Event) =
copy(
events = events.take(SyncLog.historySize - 1) :+ event
events = {
if (events.sizeIs > SyncLog.historySize) events drop 1
else events
} :+ event
)
}