Skip to content

Commit

Permalink
Use shardBatch instead of records for failedRecords (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
etspaceman authored Nov 9, 2023
1 parent 69060e0 commit 24f67da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/main/scala/kinesis4cats/producer/Producer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ abstract class Producer[F[_], PutReq, PutRes] private[kinesis4cats] (
.parTraverseN(config.shardParallelism) { shardBatch =>
putImpl(asPutRequest(shardBatch))
.map(resp =>
failedRecords(records, resp)
failedRecords(shardBatch, resp)
.map(Producer.Result.putFailures[PutRes])
.fold(
Producer.Result.success(resp)
Expand Down

0 comments on commit 24f67da

Please sign in to comment.