Skip to content

Commit

Permalink
more explicit typing for compiler to figure out
Browse files Browse the repository at this point in the history
  • Loading branch information
ABMC831 committed Oct 23, 2024
1 parent 3e5d908 commit 0be560a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ import za.co.absa.kafkacase.reader.Reader

object ReaderReadOnce {
def apply[T: Decoder](readerConf: Config, topicName: String): Unit =
Reader.readOnce[T](readerConf, topicName, println)
Reader.readOnce[T](readerConf, topicName, (item: (String, Either[String, T])) => println(item))
}

0 comments on commit 0be560a

Please sign in to comment.