Skip to content

Commit 9647fec

Browse files
committed
Change List to MutableList
1 parent bda34ae commit 9647fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/io/github/nomisRev/kafka/receiver/internals/CommittableBatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ internal class CommittableBatch {
9393
fun getAndClearOffsets(): CommitArgs {
9494
val offsetMap: MutableMap<TopicPartition, OffsetAndMetadata> = HashMap()
9595
if (outOfOrderCommits) {
96-
deferred.forEach { (tp: TopicPartition, offsets: List<Long>) ->
96+
deferred.forEach { (tp: TopicPartition, offsets: MutableList<Long>) ->
9797
if (offsets.size > 0) {
9898
offsets.sort()
9999
val uncomittedThisPart: MutableList<Long> = uncommitted[tp]!!

0 commit comments

Comments
 (0)