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

fix: make DealStatesEqual work properly #12783

Merged
merged 1 commit into from
Dec 16, 2024
Merged

fix: make DealStatesEqual work properly #12783

merged 1 commit into from
Dec 16, 2024

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Dec 13, 2024

I'm not sure this is even needed. I also don't know if SectorNumber should be considered here, it wasn't on the original form and I only added it because that would seem to be appropriate for completeness.

My short git detective walk suggests the emptyDealState#Equals method contents was deduped with DealStatesEqual as part of the DDO work in #11226, but the wrong way around, ooops. So I'm flipping it back, but also adding SectorNumber because that would seem more correct 🤷‍♂️ ; depends on how this is used.

There's one use in StatePredicates#DealStateChangedForIDs but I can't see that being used anywhere.

There's one use in marketStatesDiffer#Modify as part of the DiffAdtArray. Downstream from this it's used by StatePredicates#OnDealStateAmtChanged, but I can't see that being used anywhere either.

@rvagg rvagg requested a review from magik6k December 13, 2024 10:06
@rvagg rvagg added the skip/changelog This change does not require CHANGELOG.md update label Dec 13, 2024
@rvagg rvagg merged commit 263636b into master Dec 16, 2024
84 of 85 checks passed
@rvagg rvagg deleted the rvagg/equalequalequal branch December 16, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip/changelog This change does not require CHANGELOG.md update
Projects
Status: ☑️ Done (Archive)
Development

Successfully merging this pull request may close these issues.

2 participants