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

factory: cleaning up factory APIs to allow code sharing #18096

Merged
merged 4 commits into from
Sep 14, 2021

Conversation

alyssawilk
Copy link
Contributor

Clean up inspired by #17745

Risk Level: low (interface refactor)
Testing: n/a
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
…ments

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Copy link
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

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

Nice refactor. One minor comment and I'm good to go.

const envoy::extensions::common::dynamic_forward_proxy::v3::DnsCacheConfig& config)
: main_thread_dispatcher_(main_thread_dispatcher),
: main_thread_dispatcher_(context.dispatcher()),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest renaming FactoryContextBase::dispatcher() to FactoryContextBase::mainThreadDispatcher to make it clearer that there can be lots of dispatchers but this is the one for the main thread.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Happy to do this but would you be Ok with a follow-up? I suspect it's going to be significant churn.

Copy link
Contributor

Choose a reason for hiding this comment

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

sgtm wasn't aware there would be that much, but this is fine.

@jmarantz jmarantz merged commit 67a9a04 into envoyproxy:main Sep 14, 2021
@alyssawilk alyssawilk deleted the factory branch February 28, 2022 21:25
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