Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix clippy errors #262

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading