Skip to content

Commit e7e7001

Browse files
committed
fix: new tracer should have len 1
1 parent 05a7193 commit e7e7001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/fiber-lib/src/ckb/tx_tracing_actor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl CkbTxTracingState {
172172
let tx_tracers = self.tracers.entry(tx_hash).or_default();
173173
tx_tracers.tracers.push(tracer);
174174

175-
if tx_tracers.tracers.len() > 1 {
175+
if tx_tracers.tracers.len() == 1 {
176176
// If there's no existing tracer for the tx, trigger the tracing task now
177177
self.run_tracers(myself, Some(vec![tx_hash])).await?
178178
}

0 commit comments

Comments
 (0)