mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 01:01:34 +00:00
Distinguish between initiator and receiver
This commit is contained in:
@ -150,7 +150,7 @@ impl<S> libp2p_swarm::ConnectionUpgrade<S> for SecioConfig
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn upgrade(self, incoming: S, _: ()) -> Self::Future {
|
||||
fn upgrade(self, incoming: S, _: (), _: libp2p_swarm::Endpoint) -> Self::Future {
|
||||
let fut = SecioMiddleware::handshake(
|
||||
incoming,
|
||||
self.key,
|
||||
|
Reference in New Issue
Block a user