Module reth_metrics::common::mpsc

source ·
Available on crate feature common only.
Expand description

Support for metering senders. Facilitates debugging by exposing metrics for number of messages sent, number of errors, etc.

Structs§

Functions§

  • Wrapper around [mpsc::channel] that returns a new bounded metered channel with the given buffer size.
  • Wrapper around [mpsc::unbounded_channel] that returns a new unbounded metered channel.