Revert "Box<[u8]> instead of Vec<u8> for ByteBufOwned"

This reverts commit deee41cd93.
This commit is contained in:
Igor Katson 2024-03-29 13:00:57 +00:00
parent e862d34cb4
commit f42de46878
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
23 changed files with 124 additions and 106 deletions

View file

@ -1,7 +1,7 @@
use std::{collections::HashSet, net::SocketAddr};
use anyhow::Context;
use buffers::ByteBufOwned;
use buffers::ByteString;
use futures::{stream::FuturesUnordered, Stream, StreamExt};
use librqbit_core::torrent_metainfo::TorrentMetaV1Info;
use tracing::debug;
@ -14,7 +14,7 @@ use librqbit_core::hash_id::Id20;
#[derive(Debug)]
pub enum ReadMetainfoResult<Rx> {
Found {
info: TorrentMetaV1Info<ByteBufOwned>,
info: TorrentMetaV1Info<ByteString>,
rx: Rx,
seen: HashSet<SocketAddr>,
},