Missing calls to Astarte handler `run` function
sorru94 opened this issue · 0 comments
sorru94 commented
The Astarte handler run
function is not called within the AstarteMessageHub
.
I propose two different approaches:
- Exposing a
run
function for theAstarteMessageHub
, containing a call to therun
function of the Astarte handler. This function however would need to be called in a separate thread due to its blocking nature. This would require theclone
trait to be implemented for theAstarteMessageHub
struct. - Starting a separate tokio task within the initialization function of the
AstarteMessageHub
in which to call therun
function.