Merge pull request #193 from izderadicka/borrow

Implement Borrow<[u8]> for ByteBuf types
This commit is contained in:
Igor Katson 2024-08-18 12:50:05 +01:00 committed by GitHub
commit 75c1127f37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 20 deletions

View file

@ -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");
}