mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-02-28 14:46:24 +00:00
parent
a3335eed82
commit
26cc19b92d
@ -740,7 +740,7 @@ where
|
|||||||
&error,
|
&error,
|
||||||
ConnectionDirection::Outgoing,
|
ConnectionDirection::Outgoing,
|
||||||
);
|
);
|
||||||
// inform failures of requests comming outside the behaviour
|
// inform failures of requests coming outside the behaviour
|
||||||
if let RequestId::Application(id) = id {
|
if let RequestId::Application(id) = id {
|
||||||
self.add_event(BehaviourEvent::RPCFailed { peer_id, id });
|
self.add_event(BehaviourEvent::RPCFailed { peer_id, id });
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ impl Service {
|
|||||||
struct Ev(PeerManagerEvent);
|
struct Ev(PeerManagerEvent);
|
||||||
impl From<void::Void> for Ev {
|
impl From<void::Void> for Ev {
|
||||||
fn from(_: void::Void) -> Self {
|
fn from(_: void::Void) -> Self {
|
||||||
unreachable!("No events are emmited")
|
unreachable!("No events are emitted")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl From<PeerManagerEvent> for Ev {
|
impl From<PeerManagerEvent> for Ev {
|
||||||
|
@ -238,7 +238,7 @@ auto_sync_enabled = true
|
|||||||
# Enable to start a file sync via RPC (e.g. `admin_startSyncFile`).
|
# Enable to start a file sync via RPC (e.g. `admin_startSyncFile`).
|
||||||
# sync_file_by_rpc_enabled = true
|
# sync_file_by_rpc_enabled = true
|
||||||
|
|
||||||
# Maximum number of continous failures to terminate a file sync.
|
# Maximum number of continuous failures to terminate a file sync.
|
||||||
# max_request_failures = 3
|
# max_request_failures = 3
|
||||||
|
|
||||||
# Timeout to dial peers.
|
# Timeout to dial peers.
|
||||||
|
@ -250,7 +250,7 @@ auto_sync_enabled = true
|
|||||||
# Enable to start a file sync via RPC (e.g. `admin_startSyncFile`).
|
# Enable to start a file sync via RPC (e.g. `admin_startSyncFile`).
|
||||||
# sync_file_by_rpc_enabled = true
|
# sync_file_by_rpc_enabled = true
|
||||||
|
|
||||||
# Maximum number of continous failures to terminate a file sync.
|
# Maximum number of continuous failures to terminate a file sync.
|
||||||
# max_request_failures = 3
|
# max_request_failures = 3
|
||||||
|
|
||||||
# Timeout to dial peers.
|
# Timeout to dial peers.
|
||||||
|
@ -252,7 +252,7 @@
|
|||||||
# Enable to start a file sync via RPC (e.g. `admin_startSyncFile`).
|
# Enable to start a file sync via RPC (e.g. `admin_startSyncFile`).
|
||||||
# sync_file_by_rpc_enabled = true
|
# sync_file_by_rpc_enabled = true
|
||||||
|
|
||||||
# Maximum number of continous failures to terminate a file sync.
|
# Maximum number of continuous failures to terminate a file sync.
|
||||||
# max_request_failures = 3
|
# max_request_failures = 3
|
||||||
|
|
||||||
# Timeout to dial peers.
|
# Timeout to dial peers.
|
||||||
|
Loading…
Reference in New Issue
Block a user