-
Notifications
You must be signed in to change notification settings - Fork 17
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-3324 - Refactor carto_grpc_server to move initialization into IO-bound and non-IO-bound functions #112
Conversation
Removing myself from the review since Nick will review (feel free to leave me off for project PR's!) |
@@ -37,7 +37,7 @@ DEFINE_bool(use_live_data, false, | |||
DEFINE_bool(aix_auto_update, false, "Automatically updates the app image"); | |||
|
|||
void ParseAndValidateConfigParams(int argc, char** argv, | |||
SLAMServiceImpl& slamService) { | |||
SLAMServiceImpl* slamService) { |
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.
Why did this function need to change?
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.
Great question - I realize I didn't need to make this change after all. Reverted it.
@@ -141,55 +141,55 @@ void ParseAndValidateConfigParams(int argc, char** argv, | |||
OverwriteCartoConfigParam(slamService, carto_param); | |||
} | |||
|
|||
void OverwriteCartoConfigParam(SLAMServiceImpl& slamService, | |||
void OverwriteCartoConfigParam(SLAMServiceImpl* slamService, |
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.
Why did this function need to change?
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.
Great question - I realize I didn't need to make this change after all. Reverted it.
Ticket: https://viam.atlassian.net/browse/RSDK-3324
Done:
SLAMServiceImpl::Init(...)
SLAMServiceImpl::Start()