-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use mqtt v1 topic to publish thin-edge.io errors to, e.g. te/errors #2386
Conversation
Robot Results
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The root MQTT prefix is encapsulated into struct MqttSchema
. Only this struct
must be used to hold the error topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main changes look fine. Have just highlighted some odd things that I've spotted.
6c0c185
to
c817588
Compare
Codecov Report
Additional details and impacted files
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved.
I added a commit deb7e20
Signed-off-by: Pradeep Kumar K J <[email protected]>
Publishing an error message over MQTT adds too much fuss for errors that will in practice never arrive (formatting current date using Rfc3339). Signed-off-by: Didier Wenzek <[email protected]>
deb7e20
to
0f0870e
Compare
Proposed changes
use
<topic_root>/errors
instead oftedge/errors
to publish the errors.topic_root
is derived from thetedge-config
. One can set it as belowtedge config set mqtt.topic_root te
the default value is
te
Types of changes
Paste Link to the issue
#2377
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments