Add support for BTv2 magnet links
This commit is contained in:
parent
1157866152
commit
0836b651a7
21 changed files with 236 additions and 157 deletions
|
|
@ -4,7 +4,7 @@ use bencode::from_bytes;
|
|||
use buffers::{ByteBuf, ByteString};
|
||||
use librqbit_core::{
|
||||
constants::CHUNK_SIZE,
|
||||
id20::Id20,
|
||||
hash_id::Id20,
|
||||
lengths::{ceil_div_u64, last_element_size_u64, ChunkInfo},
|
||||
torrent_metainfo::TorrentMetaV1Info,
|
||||
};
|
||||
|
|
@ -226,7 +226,7 @@ impl PeerConnectionHandler for Handler {
|
|||
mod tests {
|
||||
use std::{net::SocketAddr, str::FromStr, sync::Once};
|
||||
|
||||
use librqbit_core::id20::Id20;
|
||||
use librqbit_core::hash_id::Id20;
|
||||
use librqbit_core::peer_id::generate_peer_id;
|
||||
|
||||
use crate::spawn_utils::BlockingSpawner;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue