jackdaw icon indicating copy to clipboard operation
jackdaw copied to clipboard

Integer-valued configuration keys give errors without explicit casts

Open IGJoshua opened this issue 2 years ago • 0 comments

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.

IGJoshua avatar Dec 02 '21 22:12 IGJoshua