Skip to content

Commit c4c7beb

Browse files
committed
pool: update Monitor::new doc
Closes #869 Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
1 parent 24511e7 commit c4c7beb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/nostr-relay-pool/src/monitor.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ pub struct Monitor {
3030
impl Monitor {
3131
/// Create a new monitor with the given channel size
3232
///
33-
/// # Panics
34-
///
35-
/// This will panic if the channel size is equal to `0` or larger than `usize::MAX / 2`;
33+
/// For more details, check [`broadcast::channel`].
3634
pub fn new(channel_size: usize) -> Self {
3735
let (tx, ..) = broadcast::channel(channel_size);
3836

0 commit comments

Comments
 (0)