From 5c4b00ee4abcbbbed85c4bd8a51a6acb588b7ab1 Mon Sep 17 00:00:00 2001 From: Kostya Bats Date: Sun, 27 Oct 2024 11:33:26 +0300 Subject: [PATCH] Remove more println logs in adapters --- .../cds/adapters/impl/RemoveFrozenSubmissionsAdapter.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cds/core/src/main/kotlin/org/icpclive/cds/adapters/impl/RemoveFrozenSubmissionsAdapter.kt b/src/cds/core/src/main/kotlin/org/icpclive/cds/adapters/impl/RemoveFrozenSubmissionsAdapter.kt index 9a6f01fb..462414a1 100644 --- a/src/cds/core/src/main/kotlin/org/icpclive/cds/adapters/impl/RemoveFrozenSubmissionsAdapter.kt +++ b/src/cds/core/src/main/kotlin/org/icpclive/cds/adapters/impl/RemoveFrozenSubmissionsAdapter.kt @@ -31,13 +31,13 @@ internal fun Flow.processByTimeCut( if (oldCut != newCut) { it.runsAfterEvent.values .filter { run -> (run.time > oldCut) != (run.time > newCut) } - .also { println("Updated runs: ${it.map { run -> run.id }}")} +// .also { println("Updated runs: ${it.map { run -> run.id }}")} .forEach { run -> emit(run, newCut) } } } is CommentaryMessagesUpdate -> emit(it.lastEvent) } -}.onEach { if (it is RunUpdate) println("${it.newInfo.id} ${it.newInfo.time} ${it.newInfo.result}") } +}.onEach { /* if (it is RunUpdate) println("${it.newInfo.id} ${it.newInfo.time} ${it.newInfo.result}") */ } internal fun removeFrozenSubmissionsResults(flow: Flow): Flow = flow.processByTimeCut( @@ -47,4 +47,4 @@ internal fun removeFrozenSubmissionsResults(flow: Flow): Flow): Flow = flow.processByTimeCut( timeCut = { it?.contestLength ?: Duration.INFINITE }, - ) { it.copy(isHidden = true) } \ No newline at end of file + ) { it.copy(isHidden = true) }