Move some code from aquatic_udp into aquatic_common

This commit is contained in:
Joakim Frostegård 2020-05-11 17:06:37 +02:00
parent 1b8d74e26d
commit 5c83af9f88
10 changed files with 111 additions and 82 deletions

View file

@ -14,7 +14,7 @@ name = "aquatic_ws"
path = "src/bin/main.rs"
[dependencies]
aquatic_udp = { path = "../aquatic_udp" }
aquatic_common = { path = "../aquatic_common" }
bittorrent_udp = { path = "../bittorrent_udp" }
cli_helpers = { path = "../cli_helpers" }
flume = "0.7"
@ -34,4 +34,4 @@ tungstenite = "0.10"
[dev-dependencies]
quickcheck = "0.9"
quickcheck_macros = "0.9"
quickcheck_macros = "0.9"

View file

@ -7,7 +7,7 @@ use indexmap::IndexMap;
use parking_lot::Mutex;
use mio::Token;
pub use aquatic_udp::common::ValidUntil;
pub use aquatic_common::ValidUntil;
use crate::protocol::*;

View file

@ -5,7 +5,7 @@ use hashbrown::HashMap;
use parking_lot::MutexGuard;
use rand::{Rng, SeedableRng, rngs::SmallRng};
use aquatic_udp::handlers::extract_response_peers;
use aquatic_common::extract_response_peers;
use crate::common::*;
use crate::protocol::*;