FundingCircle / jackdaw

A Clojure library for the Apache Kafka distributed streaming platform.
https://fundingcircle.github.io/jackdaw/
BSD 3-Clause "New" or "Revised" License
368 stars 80 forks source link

Integer-valued configuration keys give errors without explicit casts #311

Open IGJoshua opened 2 years ago

IGJoshua commented 2 years ago

When constructing consumers, producers, or any other jackdaw kafka client with a configuration map that requires an integer value for some key, Kafka will throw an exception if it's represented with a java.lang.Long, which of course is the default for Clojure numbers.

It would be really nice if jackdaw would watch out for this and automatically convert things to integers to allow reading the config from e.g. edn without needing to perform a lot of transformations on it manually.