Skip to content
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

Fix: src: device: manager: Panic when call unimplemented options #6

Merged

Conversation

RaulTrombin
Copy link
Member

No description provided.

@RaulTrombin RaulTrombin marked this pull request as ready for review July 19, 2024 12:50
.respond_to
.send(Err(ManagerError::NotImplemented(actor_request.request)))
{
warn!("DeviceManager: Failed to return response: {:?}", e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We often prefer to use it like {e:?}, but I don't know if this repo is following this idea

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some habits are difficult to break, I learned this way when was learning C haha
I'm going to apply and keep this stantandard then.

Copy link
Member Author

@RaulTrombin RaulTrombin Jul 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's some special cases that seems it doesn't work:

                    warn!(
                        "Unsupported request for device type: {:?}",
                        &self.device_type
                    );

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @joaoantoniocardoso
Please check the newer commit below!

Copy link
Member

@joaoantoniocardoso joaoantoniocardoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code seems all right

…p variables inside log description, following our current standards
@joaoantoniocardoso joaoantoniocardoso merged commit 81de917 into bluerobotics:master Jul 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants