absmach / mgate

mProxy is an MQTT proxy
https://abstractmachines.fr/magistrala.html
Apache License 2.0
78 stars 27 forks source link

Update mProxy Handler methods for improved testability #31

Closed dborovcanin closed 1 year ago

dborovcanin commented 1 year ago

Currently, Mainflux mProxy hooks for intersecting different kinds of MQTT packets are written in such a way that we often don't return values or errors. While this is fine due to the nature of those methods, it makes sense that we return errors, values, or both to improve code testability.