mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-11-03 08:07:27 +00:00
docs: fix typos (#386)
This commit is contained in:
parent
55087eac7f
commit
a3717d6bc1
@ -1017,8 +1017,8 @@ impl std::convert::From<Request> for OutboundRequest {
|
||||
/// The type of RPC responses the Behaviour informs it has received, and allows for sending.
|
||||
///
|
||||
// NOTE: This is an application-level wrapper over the lower network level responses that can be
|
||||
// sent. The main difference is the absense of Pong and Metadata, which don't leave the
|
||||
// Behaviour. For all protocol reponses managed by RPC see `RPCResponse` and
|
||||
// sent. The main difference is the absence of Pong and Metadata, which don't leave the
|
||||
// Behaviour. For all protocol responses managed by RPC see `RPCResponse` and
|
||||
// `RPCCodedResponse`.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum Response {
|
||||
|
||||
@ -299,7 +299,7 @@ impl RouterService {
|
||||
}
|
||||
NetworkMessage::Publish { messages } => {
|
||||
if self.libp2p.swarm.connected_peers().next().is_none() {
|
||||
// this is a boardcast message, when current node doesn't have any peers connected, try to connect any peer in config
|
||||
// this is a broadcast message, when current node doesn't have any peers connected, try to connect any peer in config
|
||||
for multiaddr in &self.config.libp2p_nodes {
|
||||
match Swarm::dial(&mut self.libp2p.swarm, multiaddr.clone()) {
|
||||
Ok(()) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user