ignoring errors and some fix (#10344)

This commit is contained in:
Guillaume Thiolliere
2021-11-29 17:16:23 +09:00
committed by GitHub
parent 2fafb9546e
commit d91125389a
6 changed files with 26 additions and 30 deletions
@@ -15,7 +15,7 @@
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
//! Helper for handling (i.e. answering) block requests from a remote peer via the
//! [`crate::request_responses::RequestResponsesBehaviour`].
//! `crate::request_responses::RequestResponsesBehaviour`.
use crate::{
chain::Client,
@@ -19,7 +19,7 @@
//! Helper for incoming light client requests.
//!
//! Handle (i.e. answer) incoming light client requests from a remote peer received via
//! [`crate::request_responses::RequestResponsesBehaviour`] with
//! `crate::request_responses::RequestResponsesBehaviour` with
//! [`LightClientRequestHandler`](handler::LightClientRequestHandler).
use crate::{
+3 -6
View File
@@ -710,8 +710,7 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkService<B, H> {
/// > preventing the message from being delivered.
///
/// The protocol must have been registered with
/// [`NetworkConfiguration::notifications_protocols`](crate::config::NetworkConfiguration::
/// notifications_protocols).
/// `crate::config::NetworkConfiguration::notifications_protocols`.
pub fn write_notification(
&self,
target: PeerId,
@@ -775,8 +774,7 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkService<B, H> {
/// in which case enqueued notifications will be lost.
///
/// The protocol must have been registered with
/// [`NetworkConfiguration::notifications_protocols`](crate::config::NetworkConfiguration::
/// notifications_protocols).
/// `crate::config::NetworkConfiguration::notifications_protocols`.
///
/// # Usage
///
@@ -817,8 +815,7 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkService<B, H> {
/// if buffer is full
///
///
/// See also the [`gossip`](crate::gossip) module for a higher-level way to send
/// notifications.
/// See also the `sc-network-gossip` crate for a higher-level way to send notifications.
pub fn notification_sender(
&self,
target: PeerId,
@@ -15,7 +15,7 @@
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
//! Helper for handling (i.e. answering) state requests from a remote peer via the
//! [`crate::request_responses::RequestResponsesBehaviour`].
//! `crate::request_responses::RequestResponsesBehaviour`.
use crate::{
chain::Client,