Replaced DHT with custom one! Lets see if it works

This commit is contained in:
Igor Katson 2021-07-12 19:55:23 +01:00
parent 5c41796485
commit 2eabebb5c3
14 changed files with 192 additions and 350 deletions

View file

@ -7,13 +7,12 @@ use crate::{
bprotocol::{
self, CompactNodeInfo, FindNodeRequest, GetPeersRequest, Message, MessageKind, Node,
},
id20::Id20,
routing_table::{InsertResult, RoutingTable},
};
use anyhow::Context;
use bencode::ByteString;
use futures::{stream::FuturesUnordered, StreamExt};
use librqbit_core::peer_id::generate_peer_id;
use librqbit_core::{id20::Id20, peer_id::generate_peer_id};
use log::{debug, info, trace, warn};
use parking_lot::Mutex;
use tokio::{