Skip to content

Commit

Permalink
simplified: adding of records; replaying of records
Browse files Browse the repository at this point in the history
  • Loading branch information
Jendrik committed Sep 27, 2017
1 parent cdbd13d commit 2cfdd9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/MockedStreams.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ object MockedStreams {
val updatedRecords = newRecords.foldLeft(inputs) {
case (events, (k, v)) =>
val newRecord = Record(topic, keySer.serialize(topic, k), valSer.serialize(topic, v))
newRecord :: events
events :+ newRecord
}

this.copy(inputs = updatedRecords)
Expand Down Expand Up @@ -105,7 +105,7 @@ object MockedStreams {
}

private def produce(driver: Driver): Unit = {
inputs.reverse.foreach{
inputs.foreach{
case Record(topic, key, value) =>
driver.process(topic, key, value)
}
Expand Down

0 comments on commit 2cfdd9b

Please sign in to comment.