mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
Move some code from aquatic_udp into aquatic_common
This commit is contained in:
parent
1b8d74e26d
commit
5c83af9f88
10 changed files with 111 additions and 82 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -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::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue