We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ce62b1 commit 627b64bCopy full SHA for 627b64b
core-s3/src/test/scala/io/aiven/guardian/kafka/s3/S3Spec.scala
@@ -199,7 +199,7 @@ trait S3Spec
199
): Source[ProducerRecord[Array[Byte], Array[Byte]], NotUsed] = {
200
val durationToMicros = streamDuration.toMillis
201
val topicsPerMillis = producerRecords.size / durationToMicros
202
- Source(producerRecords).throttle(topicsPerMillis.toInt, 1 millis)
+ Source(producerRecords).throttle(topicsPerMillis.toInt max 1, 1 millis)
203
}
204
205
/** Converts a generated list of `ReducedConsumerRecord` to a list of `ProducerRecord`
0 commit comments