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

make RobotClientOptions properties *not* final #260

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

clintpurser
Copy link
Member

Ran into an issue with this where i wanted to set enableSessions to false - it was not possible because it was final and the value was set upon initialization.

An alternative approach could be leaving them as final, but providing the default values in the constructors.

@clintpurser clintpurser requested a review from njooma September 16, 2024 15:50
@clintpurser clintpurser requested a review from a team as a code owner September 16, 2024 15:50
@clintpurser clintpurser changed the title make RobotClientOptions parameters final make RobotClientOptions parameters *not* final Sep 16, 2024
@clintpurser clintpurser changed the title make RobotClientOptions parameters *not* final make RobotClientOptions properties *not* final Sep 16, 2024
Copy link
Member

@njooma njooma left a comment

Choose a reason for hiding this comment

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

I don't see why we can't let people change their options outside the constructor

@clintpurser clintpurser merged commit c403355 into viamrobotics:main Sep 16, 2024
4 checks passed
@clintpurser clintpurser deleted the robotclientoptions-final branch September 16, 2024 16:59
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