mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-11-03 08:07:27 +00:00
docs: fix typos
This commit is contained in:
parent
9a1edae9a2
commit
4d768e21c8
@ -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.
|
/// 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
|
// 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
|
// sent. The main difference is the absence of Pong and Metadata, which don't leave the
|
||||||
// Behaviour. For all protocol reponses managed by RPC see `RPCResponse` and
|
// Behaviour. For all protocol responses managed by RPC see `RPCResponse` and
|
||||||
// `RPCCodedResponse`.
|
// `RPCCodedResponse`.
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub enum Response {
|
pub enum Response {
|
||||||
|
|||||||
@ -299,7 +299,7 @@ impl RouterService {
|
|||||||
}
|
}
|
||||||
NetworkMessage::Publish { messages } => {
|
NetworkMessage::Publish { messages } => {
|
||||||
if self.libp2p.swarm.connected_peers().next().is_none() {
|
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 {
|
for multiaddr in &self.config.libp2p_nodes {
|
||||||
match Swarm::dial(&mut self.libp2p.swarm, multiaddr.clone()) {
|
match Swarm::dial(&mut self.libp2p.swarm, multiaddr.clone()) {
|
||||||
Ok(()) => {
|
Ok(()) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user