Merge commit '86b6591b369a220f1a39078ef2a71939d7a2b812' into perf/improve

This commit is contained in:
ysq
2025-08-26 23:04:37 +08:00
6 changed files with 40 additions and 3 deletions
+7 -1
View File
@@ -188,7 +188,13 @@ async fn test_shreds() -> Result<(), Box<dyn std::error::Error>> {
fn create_event_callback() -> impl Fn(Box<dyn UnifiedEvent>) {
|event: Box<dyn UnifiedEvent>| {
println!("🎉 Event received! Type: {:?}, ID: {}", event.event_type(), event.id());
println!(
"🎉 Event received! Type: {:?}, ID: {}, Slot: {}, Transaction Index: {:?}",
event.event_type(),
event.id(),
event.slot(),
event.transaction_index(),
);
match_event!(event, {
// -------------------------- block meta -----------------------
BlockMetaEvent => |e: BlockMetaEvent| {