summaryrefslogtreecommitdiff
path: root/src/broadcast.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-06-23 19:44:00 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-06-23 19:44:00 -0400
commit022ae4ecf5f05b72280b1d702cb92d6795485639 (patch)
tree36820f4d12d20037211f1da055f415d28366fe5f /src/broadcast.rs
parentae38a73c58cb268e36b4209846b3cd37de73ecb8 (diff)
Remove misleading and long-since stale "panic" notes.
These were invalidated by eff129bc1f29bcb1b2b9d10c6b49ab886edc83d6, back in September.
Diffstat (limited to 'src/broadcast.rs')
-rw-r--r--src/broadcast.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/broadcast.rs b/src/broadcast.rs
index 41a5e23..6e1f04d 100644
--- a/src/broadcast.rs
+++ b/src/broadcast.rs
@@ -30,8 +30,6 @@ impl<M> Broadcaster<M>
where
M: Clone + Send + std::fmt::Debug + 'static,
{
- // panic: if ``message.channel.id`` has not been previously registered,
- // and was not part of the initial set of channels.
pub fn broadcast(&self, message: impl Into<M>) {
let tx = self.sender();
@@ -45,8 +43,6 @@ where
let _ = tx.send(message.into());
}
- // panic: if ``channel`` has not been previously registered, and was not
- // part of the initial set of channels.
pub fn subscribe(&self) -> impl Stream<Item = M> + std::fmt::Debug + use<M> {
let rx = self.sender().subscribe();