Skip to content

Commit

Permalink
Fix timeToDeadlineMillis
Browse files Browse the repository at this point in the history
  • Loading branch information
svroonland committed Nov 10, 2024
1 parent 7994954 commit d3e0270
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private[consumer] final class Runloop private (
): Task[Unit] = {
val deadline = java.lang.System.nanoTime() + maxRebalanceDuration.toNanos - commitTimeoutNanos

def timeToDeadlineMillis(): Long = (java.lang.System.nanoTime() - deadline) / 1000000L
def timeToDeadlineMillis(): Long = (deadline - java.lang.System.nanoTime()) / 1000000L

val endingTps = streamsToEnd.map(_.tp).toSet

Expand Down

0 comments on commit d3e0270

Please sign in to comment.