mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: downgrade error message (#8561)
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user