mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-27 17:51:20 +00:00
Fix wrong endpoint in and_then (#278)
This commit is contained in:
parent
143a1845b1
commit
a7a06aa5ab
@ -101,7 +101,7 @@ where
|
||||
let future = dialed_fut
|
||||
// Try to negotiate the protocol.
|
||||
.and_then(move |(connection, client_addr)| {
|
||||
upgrade(connection, Endpoint::Listener, client_addr)
|
||||
upgrade(connection, Endpoint::Dialer, client_addr)
|
||||
});
|
||||
|
||||
Ok(Box::new(future))
|
||||
|
Loading…
x
Reference in New Issue
Block a user