Skip to content

Refactor component values into constant#10336

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/refactor-component-values
Mar 29, 2024
Merged

Refactor component values into constant#10336
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/refactor-component-values

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

To get closer to being thread-safer, this PR refactors the VoT component values out of a class instance variable into a constant. This value is only written once with what should be the same value, so the current implementation is probably safe, but this is more of moving to best practices around thread-safety.

@mitchellhenke mitchellhenke requested a review from a team March 28, 2024 20:46
changelog: Internal, Performance, Refactor component values into constant

Co-authored-by: Zach Margolis <zachary.margolis@gsa.gov>
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/refactor-component-values branch from d60ae0f to a7f551d Compare March 28, 2024 21:12
@mitchellhenke mitchellhenke merged commit 5c0287e into main Mar 29, 2024
@mitchellhenke mitchellhenke deleted the mitchellhenke/refactor-component-values branch March 29, 2024 14:23
@aduth aduth mentioned this pull request Apr 2, 2024
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