Skip to content

Commit

Permalink
tar bort unødvendig seek
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Jan 27, 2025
1 parent 17a2772 commit 76316f3
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ class KafkaRapid(
currentPositions.map { "\tpartition=${it.key}, offset=${it.value}" }
.joinToString(separator = "\n", prefix = "\n", postfix = "\n"), err
)
currentPositions.forEach { (partition, offset) -> consumer.seek(partition, offset) }
throw err
} finally {
val offsetsToBeCommitted = currentPositions.mapValues<TopicPartition, Long, OffsetAndMetadata> { (_, offset) -> offsetMetadata(offset) }
Expand Down

0 comments on commit 76316f3

Please sign in to comment.