chore: downgrade error message (#8561)

This commit is contained in:
Matthias Seitz
2024-06-03 17:07:46 +02:00
committed by GitHub
parent fdd401db46
commit 994f98f12d

View File

@ -1,6 +1,6 @@
use crate::EventStream;
use tokio::sync::broadcast::{self, Sender};
use tracing::error;
use tracing::trace;
const DEFAULT_SIZE_BROADCAST_CHANNEL: usize = 2000;
@ -30,7 +30,7 @@ impl<T: Clone + Send + Sync + 'static> EventSender<T> {
/// Broadcasts an event to all listeners.
pub fn notify(&self, event: T) {
if self.sender.send(event).is_err() {
error!("channel closed");
trace!("no receivers for broadcast events");
}
}