Skip to content

Commit

Permalink
Apply review suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: linning <[email protected]>
  • Loading branch information
NingLin-P committed Nov 20, 2023
1 parent 89e4572 commit 9d020a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion domains/client/domain-operator/src/bundle_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ use std::time::Instant;
// The slow log threshold for consensus block preprocessing
const SLOW_PREPROCESS_MILLIS: u64 = 500;

// The slow log threshold for domain block execution: `reference_duration_ms * 1.2 + 200ms`
// The slow log threshold for domain block execution: `reference_duration_ms * 1.2 + 200ms`,
// where `reference_duration_ms * 0.2` as buffer of the slow extrinsic execution (i.e. slower
// machine than the reference machine) and 200ms as buffer of the rest of the processing.
fn slow_domain_block_execution_threshold(reference_duration_ms: u64) -> u64 {
reference_duration_ms + (reference_duration_ms / 5) + 200
}
Expand Down

0 comments on commit 9d020a4

Please sign in to comment.