-
Notifications
You must be signed in to change notification settings - Fork 54
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
Remove tedge_actors dependency on anyhow #1752
Remove tedge_actors dependency on anyhow #1752
Conversation
let actor = C8YHttpProxyActor::new(self, messages); | ||
actor.run().await | ||
Ok(actor.run().await?) |
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.
That looks weird. Wondering why the C8YHttpProxyActor::run
is not returning RuntimeError
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.
Good catch. This has been fixed by f9fd119
@@ -64,7 +65,7 @@ impl ConfigManagerActor { | |||
&mut self, | |||
message: MqttMessage, | |||
message_box: &mut ConfigManagerMessageBox, | |||
) -> Result<(), anyhow::Error> { | |||
) -> Result<(), DynError> { |
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.
That's my bad. I'll do a follow-up PR to fix this by makes all config manager functions return ConfigManagementError
instead of this DynError
.
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.
It would even be good to do this in that PR.
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.
Done as a fixup commit f9fd119
Robot Results
Passed Tests
|
e7d4919
to
b7b5c81
Compare
f9fd119
to
ef837a5
Compare
ef837a5
to
612b514
Compare
- A library crate should not depend on anyhow - Extends RuntimeError with a case for any std::error::Error - Change the signature of Actor::run to raise RuntimeError Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
612b514
to
787323c
Compare
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Merging this PR despite test report has not been generated: the fix can be effective only on the main branch. |
A library crate should not depend on anyhow
Proposed changes
Types of changes
Paste Link to the issue
#1724
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments