node: mark modules as private
In an effort to reduce the change of version numbers, dependents of `radicle-node` should not need to know about the modules: - `control` - `wire` - `worker` These are internal to the `radicle-node` running, and none of its dependents accessed them. This resulted in removing two unused type aliases.
This commit is contained in:
parent
59e09078bb
commit
ed5a68c1d7
|
|
@ -3,19 +3,21 @@
|
||||||
// suggestions did not make sense.
|
// suggestions did not make sense.
|
||||||
#![allow(clippy::byte_char_slices)]
|
#![allow(clippy::byte_char_slices)]
|
||||||
|
|
||||||
use std::str::FromStr;
|
|
||||||
use std::sync::LazyLock;
|
|
||||||
|
|
||||||
pub mod control;
|
|
||||||
pub mod fingerprint;
|
pub mod fingerprint;
|
||||||
pub mod runtime;
|
pub mod runtime;
|
||||||
|
|
||||||
|
mod control;
|
||||||
pub(crate) use radicle_protocol::service;
|
pub(crate) use radicle_protocol::service;
|
||||||
|
mod wire;
|
||||||
|
mod worker;
|
||||||
|
|
||||||
#[cfg(any(test, feature = "test"))]
|
#[cfg(any(test, feature = "test"))]
|
||||||
pub mod test;
|
pub mod test;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub mod tests;
|
pub mod tests;
|
||||||
pub mod wire;
|
|
||||||
pub mod worker;
|
use std::str::FromStr;
|
||||||
|
use std::sync::LazyLock;
|
||||||
|
|
||||||
use radicle::version::Version;
|
use radicle::version::Version;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ use cyphernet::{Digest, EcSk, Ecdh, Sha256};
|
||||||
use localtime::LocalTime;
|
use localtime::LocalTime;
|
||||||
use netservices::resource::{ListenerEvent, NetAccept, NetTransport, SessionEvent};
|
use netservices::resource::{ListenerEvent, NetAccept, NetTransport, SessionEvent};
|
||||||
use netservices::session::{NoiseSession, ProtocolArtifact, Socks5Session};
|
use netservices::session::{NoiseSession, ProtocolArtifact, Socks5Session};
|
||||||
use netservices::{NetConnection, NetReader, NetWriter};
|
use netservices::NetConnection;
|
||||||
use radicle::node::device::Device;
|
use radicle::node::device::Device;
|
||||||
use reactor::{ResourceId, ResourceType, Timestamp};
|
use reactor::{ResourceId, ResourceType, Timestamp};
|
||||||
|
|
||||||
|
|
@ -70,10 +70,6 @@ pub enum Control {
|
||||||
|
|
||||||
/// Peer session type.
|
/// Peer session type.
|
||||||
pub type WireSession<G> = NoiseSession<G, Sha256, Socks5Session<net::TcpStream>>;
|
pub type WireSession<G> = NoiseSession<G, Sha256, Socks5Session<net::TcpStream>>;
|
||||||
/// Peer session type (read-only).
|
|
||||||
pub type WireReader = NetReader<Socks5Session<net::TcpStream>>;
|
|
||||||
/// Peer session type (write-only).
|
|
||||||
pub type WireWriter<G> = NetWriter<NoiseState<G, Sha256>, Socks5Session<net::TcpStream>>;
|
|
||||||
|
|
||||||
/// Reactor action.
|
/// Reactor action.
|
||||||
type Action<G> = reactor::Action<NetAccept<WireSession<G>>, NetTransport<WireSession<G>>>;
|
type Action<G> = reactor::Action<NetAccept<WireSession<G>>, NetTransport<WireSession<G>>>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue