mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-14 17:38:05 +00:00
Merge commit '86b6591b369a220f1a39078ef2a71939d7a2b812' into perf/improve
This commit is contained in:
@@ -113,7 +113,7 @@ impl EventProcessor {
|
||||
let signature = transaction_pretty.signature;
|
||||
// 使用缓存获取解析器
|
||||
let parser = self.get_parser();
|
||||
let all_events = parser
|
||||
let mut all_events = parser
|
||||
.parse_transaction(
|
||||
transaction_pretty.tx.clone(),
|
||||
signature,
|
||||
@@ -125,6 +125,11 @@ impl EventProcessor {
|
||||
.await
|
||||
.unwrap_or_else(|_e| vec![]);
|
||||
|
||||
// 为所有事件设置交易索引
|
||||
for event in &mut all_events {
|
||||
event.set_transaction_index(transaction_pretty.transaction_index);
|
||||
}
|
||||
|
||||
let max_time_consuming_us = all_events
|
||||
.iter()
|
||||
.map(|event| event.program_handle_time_consuming_us())
|
||||
|
||||
Reference in New Issue
Block a user