Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: mark modules as private
✗ CI failure Fintan Halpenny committed 7 months ago
commit ed5a68c1d74a6d29d1206b48c80e61e25560a51f
parent 59e09078bb0f4fe93e18a9877f18a075f83d517a
3 failed (3 total) View logs
2 files changed +9 -11
modified 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;

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