events optimization

This commit is contained in:
wood
2025-08-03 05:37:04 +08:00
parent 2cbab93346
commit 4c90931e28
17 changed files with 1311 additions and 212 deletions
+2 -2
View File
@@ -48,9 +48,9 @@ macro_rules! impl_unified_event {
}
fn merge(&mut self, other: Box<dyn $crate::streaming::event_parser::core::traits::UnifiedEvent>) {
if let Some(e) = other.as_any().downcast_ref::<$struct_name>() {
if let Some(_e) = other.as_any().downcast_ref::<$struct_name>() {
$(
self.$field = e.$field.clone();
self.$field = _e.$field.clone();
)*
}
}