Method
restore
(&mut self, snapshot: &Box<dyn std::any::Any>)
Source from the content-addressed store, hash-verified
| 343 | } |
| 344 | |
| 345 | fn restore(&mut self, snapshot: &Box<dyn std::any::Any>) { |
| 346 | let snapshot = snapshot.downcast_ref::<MultiStreamSnapshot>().unwrap(); |
| 347 | for (addr, cursor) in &snapshot.cursors { |
| 348 | self.streams.get_mut(addr).unwrap().cursor = *cursor; |
| 349 | } |
| 350 | if let Some(tracer) = self.tracer.as_mut() { |
| 351 | tracer.restore(snapshot.tracer.as_ref().unwrap()); |
| 352 | } |
| 353 | } |
| 354 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected