Merge pull request #193 from izderadicka/borrow
Implement Borrow<[u8]> for ByteBuf types
This commit is contained in:
commit
75c1127f37
4 changed files with 24 additions and 20 deletions
|
|
@ -215,7 +215,7 @@ impl PeerConnectionHandler for Handler {
|
|||
None => anyhow::bail!("peer does not have metadata_size"),
|
||||
};
|
||||
|
||||
if extended_handshake.get_msgid(b"ut_metadata").is_none() {
|
||||
if extended_handshake.ut_metadata().is_none() {
|
||||
anyhow::bail!("peer does not support ut_metadata");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue