mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 09:11:34 +00:00
Add an Error associated type to transports (#835)
* Add an Error associated type to transports * Improve raw swarm a bit * Rename map_other to map * Use source() instead of cause() * RawSwarmIncErr -> IncomingError
This commit is contained in:
@ -536,7 +536,7 @@ mod tests {
|
||||
|
||||
let future = transport
|
||||
.dial(rx.recv().unwrap())
|
||||
.unwrap_or_else(|_| panic!())
|
||||
.unwrap()
|
||||
.and_then(|proto| proto.send(msg_client))
|
||||
.map(|_| ());
|
||||
let mut rt = Runtime::new().unwrap();
|
||||
|
Reference in New Issue
Block a user