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

Reduce code duplication between builders and configuration #907

Merged
merged 1 commit into from
Jul 24, 2020

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jul 23, 2020

Motivation:

The client and server builders each eventually produce a Configuration.
Each Configuration has a bunch of defaults which were duplicated
in the builder.

Modifications:

  • Builders use configuration rather than relying on their own values and
    then building a configuration

Result:

  • Less code duplication; lower chance of drift in defaults between
    configuration and builders

Motivation:

The client and server builders each eventually produce a `Configuration`.
Each `Configuration` has a bunch of defaults which were duplicated
in the builder.

Modifications:

- Builders use configuration rather than relying on their own values and
  then building a configuration

Result:

- Less code duplication; lower chance of drift in defaults between
  configuration and builders
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jul 23, 2020
@glbrntt glbrntt requested a review from Lukasa July 23, 2020 14:37
@Lukasa Lukasa merged commit 47cb501 into grpc:master Jul 24, 2020
@glbrntt glbrntt deleted the gb-config branch August 5, 2020 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants