Land release blocker fixes and workspace cleanup
This commit is contained in:
@@ -108,11 +108,7 @@ impl LocalAgreement {
|
||||
|
||||
// Can't commit anything until we have n passes in hand.
|
||||
if self.history.len() < self.n {
|
||||
let tentative = self
|
||||
.history
|
||||
.back()
|
||||
.cloned()
|
||||
.unwrap_or_default();
|
||||
let tentative = self.history.back().cloned().unwrap_or_default();
|
||||
return CommitDecision {
|
||||
newly_committed: Vec::new(),
|
||||
tentative,
|
||||
|
||||
@@ -121,7 +121,7 @@ impl RmsVadChunker {
|
||||
pending_onset_frames: 0,
|
||||
onset_buffer: Vec::new(),
|
||||
next_sample_index: 0,
|
||||
active_chunk_start: 0,
|
||||
active_chunk_start: 0,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -552,10 +552,7 @@ mod tests {
|
||||
let mut c = RmsVadChunker::new();
|
||||
assert!(c.flush().is_empty());
|
||||
let _ = c.push(&constant_signal(16_000, 0.0));
|
||||
assert!(
|
||||
c.flush().is_empty(),
|
||||
"flushing pure silence emits nothing"
|
||||
);
|
||||
assert!(c.flush().is_empty(), "flushing pure silence emits nothing");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user