Skip to content

Commit

Permalink
deliberately made buggy writer
Browse files Browse the repository at this point in the history
  • Loading branch information
ABMC831 committed Aug 22, 2024
1 parent 1e4bf2e commit 6361872
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class WriterImpl[TType: Encoder](props: Properties, topic: String) extends Write

def Write(key: String, value: TType): Unit = {
log.info(f"Writing: $key => $value")
producer.send(new ProducerRecord[String, String](topic, key, value.asJson.noSpaces))
prodERRORucer.send(new ProducerRecord[String, String](topic, key, value.asJson.noSpaces))
}

def Flush(): Unit = producer.flush()
Expand Down

0 comments on commit 6361872

Please sign in to comment.