代码优化调整

This commit is contained in:
xintaofei
2026-03-29 21:43:48 +08:00
parent 19890b3cb5
commit 5f1ba86ac2
4 changed files with 19 additions and 7 deletions

View File

@@ -13,6 +13,12 @@ pub struct WebEventBroadcaster {
sender: broadcast::Sender<WebEvent>,
}
impl Default for WebEventBroadcaster {
fn default() -> Self {
Self::new()
}
}
impl WebEventBroadcaster {
pub fn new() -> Self {
let (sender, _) = broadcast::channel(4096);