mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-17 20:11:22 +00:00
Update to bytes v0.5
Except for `multiaddr` which encapsulates its use of bytes v0.4 now.
This commit is contained in:
@ -120,7 +120,7 @@ where
|
||||
let context = HandshakeContext::new(config)?;
|
||||
|
||||
trace!("sending exchange to remote");
|
||||
socket.send(BytesMut::from(context.state.exchange_bytes.clone())).await?;
|
||||
socket.send(BytesMut::from(&context.state.exchange_bytes[..])).await?;
|
||||
|
||||
trace!("receiving the remote's exchange");
|
||||
let context = match socket.next().await {
|
||||
|
Reference in New Issue
Block a user