Distinguish between initiator and receiver

This commit is contained in:
Pierre Krieger
2017-12-11 15:57:21 +01:00
parent 5cf86e5191
commit 3937649300
4 changed files with 34 additions and 17 deletions

View File

@ -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,