message: Remove now unused metrics
diff: @@ -50,16 +50,6 @@ pub(super) struct NetworkingMetrics {
  /// Volume in bytes of outgoing messages with other payload.
  pub(super) out_bytes_other: IntCounter,
  - // Potentially temporary metrics, not supported by all networking components:
  - /// Number of do-nothing futures that have not finished executing for read requests.
  - pub(super) read_futures_in_flight: prometheus::Gauge,
  - /// Number of do-nothing futures created total (read).
  - pub(super) read_futures_total: prometheus::Gauge,
  - /// Number of do-nothing futures that have not finished executing for write responses.
  - pub(super) write_futures_in_flight: prometheus::Gauge,
  - /// Number of do-nothing futures created total (write).
  - pub(super) write_futures_total: prometheus::Gauge,
  -
  /// Registry instance.
  registry: Registry,
  }
  @@ -139,23 +129,6 @@ impl NetworkingMetrics {
  "volume in bytes of outgoing messages with other payload",
  )?;
  - let read_futures_in_flight = prometheus::Gauge::new(
  - "owm_read_futures_in_flight",
  - "number of do-nothing futures in flight created by `Codec::read_response`",
  - )?;
  - let read_futures_total = prometheus::Gauge::new(
  - "owm_read_futures_total",
  - "number of do-nothing futures total created by `Codec::read_response`",
  - )?;
  - let write_futures_in_flight = prometheus::Gauge::new(
  - "owm_write_futures_in_flight",
  - "number of do-nothing futures in flight created by `Codec::write_response`",
  - )?;
  - let write_futures_total = prometheus::Gauge::new(
  - "owm_write_futures_total",
  - "number of do-nothing futures total created by `Codec::write_response`",
  - )?;
  -
  registry.register(Box::new(broadcast_requests.clone()))?;
  registry.register(Box::new(direct_message_requests.clone()))?;
  registry.register(Box::new(open_connections.clone()))?;
  @@ -178,11 +151,6 @@ impl NetworkingMetrics {
  registry.register(Box::new(out_bytes_block_transfer.clone()))?;
  registry.register(Box::new(out_bytes_other.clone()))?;
  - registry.register(Box::new(read_futures_in_flight.clone()))?;
  - registry.register(Box::new(read_futures_total.clone()))?;
  - registry.register(Box::new(write_futures_in_flight.clone()))?;
  - registry.register(Box::new(write_futures_total.clone()))?;
  -
  Ok(NetworkingMetrics {
  broadcast_requests,
  direct_message_requests,
  @@ -203,10 +171,6 @@ impl NetworkingMetrics {
  out_bytes_deploy_transfer,
  out_bytes_block_transfer,
  out_bytes_other,
  - read_futures_in_flight,
  - read_futures_total,
  - write_futures_in_flight,
  - write_futures_total,
  registry: registry.clone(),
  })
  }
  @@ -272,10 +236,5 @@ impl Drop for NetworkingMetrics {
  unregister_metric!(self.registry, self.out_bytes_deploy_transfer);
  unregister_metric!(self.registry, self.out_bytes_block_transfer);
  unregister_metric!(self.registry, self.out_bytes_other);
  -
  - unregister_metric!(self.registry, self.read_futures_in_flight);
  - unregister_metric!(self.registry, self.read_futures_total);
  - unregister_metric!(self.registry, self.write_futures_in_flight);
  - unregister_metric!(self.registry, self.write_futures_total);
  }
  }
  