mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
added helper error enums for L1BlockInfoError (#14326)
This commit is contained in:
@ -790,7 +790,7 @@ impl PeersManager {
|
||||
|
||||
/// Connects a peer and its address with the given kind.
|
||||
///
|
||||
/// Note: This is invoked ond demand via an external command received by the manager
|
||||
/// Note: This is invoked on demand via an external command received by the manager
|
||||
pub(crate) fn add_and_connect_kind(
|
||||
&mut self,
|
||||
peer_id: PeerId,
|
||||
|
||||
@ -774,7 +774,7 @@ impl NetworkEventStream {
|
||||
Some(peer_id)
|
||||
}
|
||||
|
||||
/// Awaits the next event for a peer remvoed.
|
||||
/// Awaits the next event for a peer removed.
|
||||
pub async fn peer_removed(&mut self) -> Option<PeerId> {
|
||||
let peer_id = match self.inner.next().await {
|
||||
Some(NetworkEvent::Peer(PeerEvent::PeerRemoved(peer_id))) => peer_id,
|
||||
|
||||
Reference in New Issue
Block a user