mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -29,10 +29,10 @@
|
||||
//! identify which substrate node is reporting the telemetry. Every task spawned using sc-service's
|
||||
//! `TaskManager` automatically inherit this span.
|
||||
//!
|
||||
//! Substrate's nodes initialize/register with the [`TelemetryWorker`] using a [`TelemetryWorkerHandle`].
|
||||
//! This handle can be cloned and passed around. It uses an asynchronous channel to communicate with
|
||||
//! the running [`TelemetryWorker`] dedicated to registration. Registering can happen at any point
|
||||
//! in time during the process execution.
|
||||
//! Substrate's nodes initialize/register with the [`TelemetryWorker`] using a
|
||||
//! [`TelemetryWorkerHandle`]. This handle can be cloned and passed around. It uses an asynchronous
|
||||
//! channel to communicate with the running [`TelemetryWorker`] dedicated to registration.
|
||||
//! Registering can happen at any point in time during the process execution.
|
||||
|
||||
#![warn(missing_docs)]
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ pub(crate) fn connection_notifier_channel() -> (ConnectionNotifierSender, Connec
|
||||
/// Handler for a single telemetry node.
|
||||
///
|
||||
/// This is a wrapper `Sink` around a network `Sink` with 3 particularities:
|
||||
/// - It is infallible: if the connection stops, it will reconnect automatically when the server
|
||||
/// becomes available again.
|
||||
/// - It holds a list of "connection messages" which are sent automatically when the connection is
|
||||
/// (re-)established. This is used for the "system.connected" message that needs to be send for
|
||||
/// every substrate node that connects.
|
||||
/// - It doesn't stay in pending while waiting for connection. Instead, it moves data into the
|
||||
/// void if the connection could not be established. This is important for the `Dispatcher`
|
||||
/// `Sink` which we don't want to block if one connection is broken.
|
||||
/// - It is infallible: if the connection stops, it will reconnect automatically when the server
|
||||
/// becomes available again.
|
||||
/// - It holds a list of "connection messages" which are sent automatically when the connection is
|
||||
/// (re-)established. This is used for the "system.connected" message that needs to be send for
|
||||
/// every substrate node that connects.
|
||||
/// - It doesn't stay in pending while waiting for connection. Instead, it moves data into the void
|
||||
/// if the connection could not be established. This is important for the `Dispatcher` `Sink`
|
||||
/// which we don't want to block if one connection is broken.
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct Node<TTrans: Transport> {
|
||||
/// Address of the node.
|
||||
|
||||
Reference in New Issue
Block a user