Prune the archives to the given view.
(&mut self, min_view: View)
| 59 | { |
| 60 | /// Prune the archives to the given view. |
| 61 | async fn prune(&mut self, min_view: View) { |
| 62 | match futures::try_join!( |
| 63 | self.verified_blocks.prune(min_view.get()), |
| 64 | self.notarized_blocks.prune(min_view.get()), |
| 65 | self.notarizations.prune(min_view.get()), |
| 66 | self.finalizations.prune(min_view.get()), |
| 67 | ) { |
| 68 | Ok(_) => debug!(min_view = %min_view, "pruned archives"), |
| 69 | Err(e) => panic!("failed to prune archives: {e}"), |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | /// Manages prunable caches and their metadata. |
nothing calls this directly
no test coverage detected