smartrent / jackalope

An opinionated MQTT client library based on Tortoise MQTT
Apache License 2.0
28 stars 5 forks source link

Filesystem-based persistent work list #75

Open jfcloutier opened 2 years ago

jfcloutier commented 2 years ago

I'm not sure about this, but is it Enum.reverse here instead of Enum.sort?

No but the code can be simplified to if Enum.empty?(state.pending), do: nil, else: Enum.min(Map.values(state.pending))