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

[RSDK-8786] avoid code duplication in rpc handling path #313

Merged

Conversation

npmenard
Copy link
Member

Having a template parameter in the path handling requests would trigger code duplication when both http2 & webrtc path are enable. By separating the handling path in a struct without generics we can save on code duplication
See details in jira ticket

@npmenard npmenard requested a review from a team as a code owner September 16, 2024 12:22
@npmenard npmenard changed the title some moves [RSDK-8786] some moves Sep 16, 2024
@npmenard npmenard changed the title [RSDK-8786] some moves [RSDK-8786] avoid code duplication in rpc handling path Sep 16, 2024
micro-rdk/src/common/grpc.rs Show resolved Hide resolved
micro-rdk/src/common/grpc.rs Show resolved Hide resolved
Copy link
Member

@mattjperez mattjperez left a comment

Choose a reason for hiding this comment

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

LGTM, confirmed with FakeCam that things work as expected

@npmenard npmenard merged commit 1c3b628 into viamrobotics:main Sep 18, 2024
6 checks 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