chore(debug): allow first fcu through in EngineApiSkipFcu interceptor (#7756)

This commit is contained in:
Roman Krasiuk
2024-04-19 20:06:47 +02:00
committed by GitHub
parent e3c5664788
commit 4f1099b9d8

View File

@ -16,7 +16,11 @@ pub struct EngineApiSkipFcu {
impl EngineApiSkipFcu {
/// Creates new [EngineApiSkipFcu] interceptor.
pub fn new(threshold: usize) -> Self {
Self { threshold, skipped: 0 }
Self {
threshold,
// Start with `threshold` so that the first FCU goes through.
skipped: threshold,
}
}
/// Intercepts an incoming engine API message, skips FCU or forwards it