Report local force-closing connections to Prometheus (#5575)

* Report local force-closing connections to Prometheus

* Also report ping timeouts separately

* Address concerns of #5571
This commit is contained in:
Pierre Krieger
2020-04-09 11:24:01 +02:00
committed by GitHub
parent 2faabff007
commit cebd073649
5 changed files with 16 additions and 6 deletions
+1
View File
@@ -77,6 +77,7 @@ pub mod sync;
pub use block_requests::BlockRequests;
pub use light_client_handler::LightClientHandler;
pub use generic_proto::LegacyConnectionKillError;
const REQUEST_TIMEOUT_SEC: u64 = 40;
/// Interval at which we perform time based maintenance