Box<[u8]> instead of Vec<u8> for ByteBufOwned
This commit is contained in:
parent
d9ec702f59
commit
deee41cd93
23 changed files with 106 additions and 124 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use std::{net::SocketAddr, sync::Arc};
|
||||
|
||||
use anyhow::Context;
|
||||
use buffers::ByteString;
|
||||
use buffers::ByteBufOwned;
|
||||
use dht::{DhtStats, Id20};
|
||||
use futures::Stream;
|
||||
use http::StatusCode;
|
||||
|
|
@ -268,7 +268,7 @@ pub struct ApiAddTorrentResponse {
|
|||
|
||||
fn make_torrent_details(
|
||||
info_hash: &Id20,
|
||||
info: &TorrentMetaV1Info<ByteString>,
|
||||
info: &TorrentMetaV1Info<ByteBufOwned>,
|
||||
only_files: Option<&[usize]>,
|
||||
) -> Result<TorrentDetailsResponse> {
|
||||
let files = info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue