mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
ignoring errors and some fix (#10344)
This commit is contained in:
committed by
GitHub
parent
2fafb9546e
commit
d91125389a
@@ -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::{
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user