Skip to content

Conversation

@stuqdog
Copy link
Member

@stuqdog stuqdog commented Mar 1, 2024

apis.json was still passing FooClient as the client type for code samples, leading to resource_by_name<FooClient>(...) rather than the now-correct resource_by_name<Foo>(...). This PR fixes that.

@stuqdog stuqdog requested a review from a team as a code owner March 1, 2024 16:26
@stuqdog stuqdog requested review from njooma and purplenicole730 and removed request for a team March 1, 2024 16:26
Comment on lines +314 to +316
impl_(std::make_unique<impl>(RobotService::NewStub(channel_))) {
Registry::initialize();
}
Copy link
Member Author

Choose a reason for hiding this comment

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

(flyby) we need to ensure that the Registry is properly initialized even when functioning as a pure client. This isn't a great long-term fix but @acmorrow has some future work on library initialization that will help clear this up.

@stuqdog stuqdog requested a review from acmorrow March 5, 2024 15:41
Copy link
Member

@acmorrow acmorrow left a comment

Choose a reason for hiding this comment

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

LGTM

@stuqdog stuqdog merged commit e9c2816 into viamrobotics:main Mar 6, 2024
@stuqdog stuqdog deleted the fix-cpp-code-sample-apis branch March 6, 2024 14:42
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.

3 participants