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:
Fintan Halpenny 2025-10-06 16:57:01 +01:00 committed by Lorenz Leutgeb
parent 59e09078bb
commit ed5a68c1d7
2 changed files with 9 additions and 11 deletions

View File

@ -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;

View File

@ -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<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.
type Action<G> = reactor::Action<NetAccept<WireSession<G>>, NetTransport<WireSession<G>>>;