Skip to content

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

Merged
jmarantz merged 4 commits intoenvoyproxy:mainfrom
alyssawilk:factory
Sep 14, 2021
Merged

factory: cleaning up factory APIs to allow code sharing#18096
jmarantz merged 4 commits intoenvoyproxy:mainfrom
alyssawilk:factory

Conversation

@alyssawilk
Copy link
Copy Markdown
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
Copy Markdown
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.

Server::Configuration::FactoryContextBase& context,
const envoy::extensions::common::dynamic_forward_proxy::v3::DnsCacheConfig& config)
: main_thread_dispatcher_(main_thread_dispatcher),
: main_thread_dispatcher_(context.dispatcher()),
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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