-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Keep TLS transport items together in a single module #1778
Conversation
The modules are already nicely separated correspoinding to their roles, this change feels like it breaks that. |
What's the difference in role between |
|
@djc I am not totally following the motivation for this? Could you expand more and if its a counter proposal to the other PR it would be good to get a summary of why its a counter proposal. |
The main difference IMO is that this PR merges more of the TLS infrastructure (which is currently kind of spread over 4 different This PR:
Other PR:
|
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.
I think I am more infavor of #1763 due to two things 1) its a smaller change that does less and 2) I kinda agree with @tottoto that the way things are laid out is done on purpose. To me the main transport::tls file is designed to only contain the public tls infrastructure while the rest is designed to contain the internal transport things like the tls error for example.
|
||
pub(crate) use self::grpc_timeout::GrpcTimeout; | ||
#[derive(Debug, Clone)] | ||
pub(crate) struct GrpcTimeout<S> { |
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.
what is the benefit of having this in the mod file compared to what we had before? And why is this relevant to this specific PR around tls?
Counterproposal to #1763.