From 2e5339de03728ce93e192e684adff0f2b92479d8 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Tue, 20 Aug 2024 14:54:26 +0100 Subject: [PATCH] fix-clippy --- src/lib.rs | 16 ++++++++-------- src/service.rs | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5fb5abd0..b4513c2a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 //! diff --git a/src/service.rs b/src/service.rs index e24c703d..e7cbcf55 100644 --- a/src/service.rs +++ b/src/service.rs @@ -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>), /// Send a FINDNODE request for nodes that fall within the given set of distances, /// to the designated peer and wait for a response.