refactor: rename UnifiedEvent to DexEvent

This commit is contained in:
ysq
2025-10-12 22:00:15 +08:00
parent e21f2cfd17
commit fd180935f8
38 changed files with 569 additions and 551 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ use crate::protos::shredstream::SubscribeEntriesRequest;
use crate::streaming::common::{process_shred_transaction, SubscriptionHandle};
use crate::streaming::event_parser::common::filter::EventTypeFilter;
use crate::streaming::event_parser::common::high_performance_clock::get_high_perf_clock;
use crate::streaming::event_parser::{Protocol, UnifiedEvent};
use crate::streaming::event_parser::{Protocol, DexEvent};
use crate::streaming::grpc::MetricsManager;
use crate::streaming::shred::pool::factory;
use log::error;
@@ -26,7 +26,7 @@ impl ShredStreamGrpc {
callback: F,
) -> AnyResult<()>
where
F: Fn(UnifiedEvent) + Send + Sync + 'static,
F: Fn(DexEvent) + Send + Sync + 'static,
{
// 如果已有活跃订阅,先停止它
self.stop().await;