Fix stupid typo for poll timeout

This commit is contained in:
Kirk True 2025-10-06 18:24:52 -07:00
parent 91409bc9d3
commit e7b53865fd
1 changed files with 1 additions and 3 deletions

View File

@ -877,9 +877,7 @@ public class AsyncKafkaConsumer<K, V> implements ConsumerDelegate<K, V> {
boolean newlySubmittedEvent = false;
if (inflightPoll == null) {
long pollTimeMs = time.milliseconds();
long deadlineMs = calculateDeadlineMs(time, pollTimeMs);
inflightPoll = new AsyncPollEvent(deadlineMs, pollTimeMs);
inflightPoll = new AsyncPollEvent(calculateDeadlineMs(timer), time.milliseconds());
newlySubmittedEvent = true;
if (log.isTraceEnabled()) {