Skip to content

Commit

Permalink
Remove withFilter usage
Browse files Browse the repository at this point in the history
  • Loading branch information
svroonland committed Nov 10, 2024
1 parent cc377dd commit 7994954
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private[consumer] final class Runloop private (
// Instead, we poll the queue in a loop.
for {
_ <- logInitialStreamCompletionStatuses
(completed, commits) <-
completedAndCommits <-
ZStream
.fromZIO(blockingSleep(commitQueuePollInterval) *> commitQueue.takeAll)
.tap(commitAsync)
Expand All @@ -245,7 +245,7 @@ private[consumer] final class Runloop private (
.takeUntil { case (completed, _) => completed }
.runLast
.map(_.getOrElse((false, Chunk.empty)))
_ <- logFinalStreamCompletionStatuses(completed, commits)
_ <- logFinalStreamCompletionStatuses(completedAndCommits._1, completedAndCommits._2)
_ <- commitSync
_ <- ZIO.logDebug(s"Done waiting for ${streamsToEnd.size} streams to end")
} yield ()
Expand Down

0 comments on commit 7994954

Please sign in to comment.