Skip to content

edf-lb: internal refactor - convert hostWeight() to const#28464

Merged
KBaichoo merged 4 commits intoenvoyproxy:mainfrom
adisuissa:const_host_weight
Jul 27, 2023
Merged

edf-lb: internal refactor - convert hostWeight() to const#28464
KBaichoo merged 4 commits intoenvoyproxy:mainfrom
adisuissa:const_host_weight

Conversation

@adisuissa
Copy link
Copy Markdown
Contributor

Commit Message: edf-lb: internal refactor - convert hostWeight() to const
Additional Description:
The EDF LB implementation used a non-const method to compute the host weight, which doesn't seem to be necessary.
As part of this PR we removed the protected data member aggression_ assuming it is not needed anywhere.

Risk Level: Low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A - not user-facing change
Platform Specific Features: N/A

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@adisuissa adisuissa marked this pull request as ready for review July 18, 2023 13:07
@adisuissa
Copy link
Copy Markdown
Contributor Author

cc @nezdolik - this PR removes the aggression_ data member that was introduced in #13176. Can you PTAL and see that it doesn't break anything on your side.

Copy link
Copy Markdown
Member

@nezdolik nezdolik left a comment

Choose a reason for hiding this comment

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

lgtm

@KBaichoo KBaichoo self-assigned this Jul 19, 2023
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@KBaichoo
Copy link
Copy Markdown
Contributor

/retest

@KBaichoo KBaichoo enabled auto-merge (squash) July 20, 2023 17:14
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@KBaichoo KBaichoo merged commit ab17113 into envoyproxy:main Jul 27, 2023
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