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

refactor(balancer) rename balancer_address to balancer_data #3502

Merged
merged 1 commit into from
May 31, 2018

Conversation

hishamhm
Copy link
Contributor

@hishamhm hishamhm commented May 31, 2018

The ctx structure for storing balancer data grew over time to store much more than the address. This renaming reflects that. Also made the localized versions match the name (those addr locals that contained non-address data did confuse me back then when I started learning about the balancer!).

This also moves balancer_hash_cookie added by @PepperTeasdale inside that same structure.

Since at least one plugin did access ngx.ctx.balancer_address explicitly, I kept an alias around for backwards compatibility.

Also took the opportunity to tweak the style of the lines touched by this patch to make them fit in 80 characters.

The ctx structure for storing balancer data grew over time to
store much more than the address. This renaming reflects that.

Also tweaked the style of the lines touched by this patch
to fit in 80 characters.
Copy link
Member

@thibaultcha thibaultcha left a comment

Choose a reason for hiding this comment

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

LGTM except for git scoping; will update to the same one as used to recently rename the runloop tree!

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.

None yet

2 participants