Skip to content

Commit

Permalink
Merge pull request lichess-org#317 from lichess-org/increase-moves-limit
Browse files Browse the repository at this point in the history
Remove ids logging when dropping moves
  • Loading branch information
lenguyenthanh authored May 4, 2024
2 parents df468cc + 08b793f commit fbdf8a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/src/main/scala/Executor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ object Executor:
ref.flatModify: state =>
val (newState, effect) =
if state.isFull(config.maxSize) then
def ids = state.tasks.mkString("\n")
AppState.empty ->
warn"stateSize=${state.size} maxSize=${config.maxSize}. Dropping all!\ntasks: $ids"
else state -> IO.unit
AppState.empty -> warn"stateSize=${state.size} maxSize=${config.maxSize}. Dropping all!"
else state -> IO.unit
newState.add(task) -> effect *> monitor.updateSize(newState)

def acquire(key: ClientKey): IO[Option[Work.Task]] =
Expand Down

0 comments on commit fbdf8a9

Please sign in to comment.