diff --git a/crates/radicle-node/src/lib.rs b/crates/radicle-node/src/lib.rs index 5ba2c1e0..51c7a280 100644 --- a/crates/radicle-node/src/lib.rs +++ b/crates/radicle-node/src/lib.rs @@ -3,19 +3,21 @@ // suggestions did not make sense. #![allow(clippy::byte_char_slices)] -use std::str::FromStr; -use std::sync::LazyLock; - -pub mod control; pub mod fingerprint; pub mod runtime; + +mod control; pub(crate) use radicle_protocol::service; +mod wire; +mod worker; + #[cfg(any(test, feature = "test"))] pub mod test; #[cfg(test)] pub mod tests; -pub mod wire; -pub mod worker; + +use std::str::FromStr; +use std::sync::LazyLock; use radicle::version::Version; diff --git a/crates/radicle-node/src/wire.rs b/crates/radicle-node/src/wire.rs index d8dd07fd..3d68ea30 100644 --- a/crates/radicle-node/src/wire.rs +++ b/crates/radicle-node/src/wire.rs @@ -17,7 +17,7 @@ use cyphernet::{Digest, EcSk, Ecdh, Sha256}; use localtime::LocalTime; use netservices::resource::{ListenerEvent, NetAccept, NetTransport, SessionEvent}; use netservices::session::{NoiseSession, ProtocolArtifact, Socks5Session}; -use netservices::{NetConnection, NetReader, NetWriter}; +use netservices::NetConnection; use radicle::node::device::Device; use reactor::{ResourceId, ResourceType, Timestamp}; @@ -70,10 +70,6 @@ pub enum Control { /// Peer session type. pub type WireSession = NoiseSession>; -/// Peer session type (read-only). -pub type WireReader = NetReader>; -/// Peer session type (write-only). -pub type WireWriter = NetWriter, Socks5Session>; /// Reactor action. type Action = reactor::Action>, NetTransport>>;