-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Conversation
…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>
There was a problem hiding this 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()), |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Clean up inspired by #17745
Risk Level: low (interface refactor)
Testing: n/a
Docs Changes: n/a
Release Notes: n/a