Skip to content

Commit

Permalink
fix-clippy (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray authored Aug 20, 2024
1 parent 6124b10 commit 8d20f81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
//! This protocol is split into four main layers:
//!
//! - [`socket`]: Responsible for opening the underlying UDP socket. It creates individual tasks
//! for sending/encoding and receiving/decoding packets from the UDP socket.
//! for sending/encoding and receiving/decoding packets from the UDP socket.
//! - [`handler`]: The protocol's communication is encrypted with `AES_GCM`. All node communication
//! undergoes a handshake, which results in a `Session`. These are established when needed and get
//! dropped after a timeout. The creation and maintenance of sessions between nodes and the
//! encryption/decryption of packets from the socket is realised by the [`handler::Handler`] struct
//! runnning in its own task.
//! undergoes a handshake, which results in a `Session`. These are established when needed and get
//! dropped after a timeout. The creation and maintenance of sessions between nodes and the
//! encryption/decryption of packets from the socket is realised by the [`handler::Handler`] struct
//! runnning in its own task.
//! - [`service`]: Contains the protocol-level logic. The [`service::Service`] manages the routing
//! table of known ENR's, and performs parallel queries for peer discovery. It also runs in it's
//! own task.
//! table of known ENR's, and performs parallel queries for peer discovery. It also runs in it's
//! own task.
//! - [`Discv5`]: The application level. Manages the user-facing API. It starts/stops the underlying
//! tasks, allows initiating queries and obtain metrics about the underlying server.
//! tasks, allows initiating queries and obtain metrics about the underlying server.
//!
//! ## Event Stream
//!
Expand Down
2 changes: 1 addition & 1 deletion src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub enum ServiceRequest {
/// A request to start a query. There are two types of queries:
/// - A FindNode Query - Searches for peers using a random target.
/// - A Predicate Query - Searches for peers closest to a random target that match a specified
/// predicate.
/// predicate.
StartQuery(QueryKind, oneshot::Sender<Vec<Enr>>),
/// Send a FINDNODE request for nodes that fall within the given set of distances,
/// to the designated peer and wait for a response.
Expand Down

0 comments on commit 8d20f81

Please sign in to comment.