mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-02 11:11:36 +00:00
Pass the ConnectedPoint to into_handler() (#1085)
This commit is contained in:
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user