Closed jjcarstens closed 3 years ago
Can the other inconsistencies be fixed too?
For example, the variable is called topic
at https://github.com/smartrent/jackalope/blob/main/lib/jackalope/tortoise_handler.ex#L47 where it should be called topic_levels
like at https://github.com/gausby/tortoise/blob/master/lib/tortoise/handler.ex#L279.
I'm finding the code hard to review with the inconsistent naming and it looks like there's another topic/topic_levels mistake, but I'm not sure.
Yes. This was a quick fix that i noticed while doing something else. I'll take a few more minutes to dive deeper into other places that are inconsistent as well
Thanks!
@fhunleth I've gone through it and fixed the inconsistencies around topic
vs topic_levels
that I could see. Hopefully this is easier to review
topic
returned inpayload_decode_error
is the same "topic" inTortoise.Handler.handle_message/3
which means it is a list of topic levels, but the type forJackalope.Handler.handle_message/2
topic is a string.