computer: new stateful 2

This commit is contained in:
nym21
2025-12-16 23:39:35 +01:00
parent 4b2ada14a0
commit a006cefd71
22 changed files with 544 additions and 221 deletions
@@ -94,8 +94,10 @@ impl Flushable for PricePercentiles {
}
Ok(())
}
}
fn safe_write(&mut self, exit: &Exit) -> Result<()> {
impl PricePercentiles {
pub fn safe_write(&mut self, exit: &Exit) -> Result<()> {
for vec in self.vecs.iter_mut().flatten() {
if let Some(height_vec) = vec.height.as_mut() {
height_vec.safe_write(exit)?;