Apply suggestions from code review

Co-Authored-By: Max Inden <mail@max-inden.de>
This commit is contained in:
Pierre Krieger
2020-01-03 11:58:08 +01:00
committed by GitHub
parent e29f36e32b
commit 90e0044dd6

View File

@ -168,8 +168,6 @@ pub trait ProtocolsHandler {
fn connection_keep_alive(&self) -> KeepAlive;
/// Should behave like `Stream::poll()`.
///
/// Returning an error will close the connection to the remote.
fn poll(&mut self, cx: &mut Context) -> Poll<
ProtocolsHandlerEvent<Self::OutboundProtocol, Self::OutboundOpenInfo, Self::OutEvent, Self::Error>
>;