mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-11-03 08:07:27 +00:00
Merge ec8e7ececa into df570e34d2
This commit is contained in:
commit
6d21d52085
@ -1,6 +1,6 @@
|
|||||||
//! Demonstrates how to run a basic Discovery v5 Service with a custom tokio executor.
|
//! Demonstrates how to run a basic Discovery v5 Service with a custom tokio executor.
|
||||||
//!
|
//!
|
||||||
//! Discv5 requires a Tokio executor with all features. A custom exuector can be passed via the
|
//! Discv5 requires a Tokio executor with all features. A custom executor can be passed via the
|
||||||
//! configuration parameters. If none is passed, it will use the current runtime that build the
|
//! configuration parameters. If none is passed, it will use the current runtime that build the
|
||||||
//! `Discv5` struct.
|
//! `Discv5` struct.
|
||||||
//!
|
//!
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
//! Session and packet handling for the Discv5 Discovery service.
|
//! Session and packet handling for the Discv5 Discovery service.
|
||||||
//!
|
//!
|
||||||
//! The [`Handler`] is responsible for establishing and maintaining sessions with
|
//! The [`Handler`] is responsible for establishing and maintaining sessions with
|
||||||
//! connected/discovered nodes. Each node, identified by it's [`NodeId`] is associated with a
|
//! connected/discovered nodes. Each node, identified by its [`NodeId`] is associated with a
|
||||||
//! `Session`. This service drives the handshakes for establishing the sessions and associated
|
//! `Session`. This service drives the handshakes for establishing the sessions and associated
|
||||||
//! logic for sending/requesting initial connections/ENR's to/from unknown peers.
|
//! logic for sending/requesting initial connections/ENR's to/from unknown peers.
|
||||||
//!
|
//!
|
||||||
@ -102,7 +102,7 @@ pub enum HandlerResponse {
|
|||||||
/// A session has been established with a node.
|
/// A session has been established with a node.
|
||||||
///
|
///
|
||||||
/// A session is only considered established once we have received a signed ENR from the
|
/// A session is only considered established once we have received a signed ENR from the
|
||||||
/// node and received messages from it's `SocketAddr` matching it's ENR fields.
|
/// node and received messages from its `SocketAddr` matching its ENR fields.
|
||||||
Established(Enr, ConnectionDirection),
|
Established(Enr, ConnectionDirection),
|
||||||
|
|
||||||
/// A Request has been received.
|
/// A Request has been received.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user