Pass the ConnectedPoint to into_handler() (#1085)

This commit is contained in:
Pierre Krieger
2019-05-10 11:05:22 +02:00
committed by GitHub
parent fd0e48bf37
commit 089e349671
5 changed files with 63 additions and 41 deletions

View File

@ -156,9 +156,9 @@ where
{
type Handler = ToggleProtoHandler<TInner::Handler>;
fn into_handler(self, remote_peer_id: &PeerId) -> Self::Handler {
fn into_handler(self, remote_peer_id: &PeerId, connected_point: &ConnectedPoint) -> Self::Handler {
ToggleProtoHandler {
inner: self.inner.map(|h| h.into_handler(remote_peer_id))
inner: self.inner.map(|h| h.into_handler(remote_peer_id, connected_point))
}
}