Skip to content

Commit 627b64b

Browse files
committed
Specify max to throttle argument
1 parent 0ce62b1 commit 627b64b

File tree

1 file changed

+1
-1
lines changed
  • core-s3/src/test/scala/io/aiven/guardian/kafka/s3

1 file changed

+1
-1
lines changed

core-s3/src/test/scala/io/aiven/guardian/kafka/s3/S3Spec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ trait S3Spec
199199
): Source[ProducerRecord[Array[Byte], Array[Byte]], NotUsed] = {
200200
val durationToMicros = streamDuration.toMillis
201201
val topicsPerMillis = producerRecords.size / durationToMicros
202-
Source(producerRecords).throttle(topicsPerMillis.toInt, 1 millis)
202+
Source(producerRecords).throttle(topicsPerMillis.toInt max 1, 1 millis)
203203
}
204204

205205
/** Converts a generated list of `ReducedConsumerRecord` to a list of `ProducerRecord`

0 commit comments

Comments
 (0)