We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Monitor::new
1 parent 24511e7 commit c4c7bebCopy full SHA for c4c7beb
crates/nostr-relay-pool/src/monitor.rs
@@ -30,9 +30,7 @@ pub struct Monitor {
30
impl Monitor {
31
/// Create a new monitor with the given channel size
32
///
33
- /// # Panics
34
- ///
35
- /// This will panic if the channel size is equal to `0` or larger than `usize::MAX / 2`;
+ /// For more details, check [`broadcast::channel`].
36
pub fn new(channel_size: usize) -> Self {
37
let (tx, ..) = broadcast::channel(channel_size);
38
0 commit comments