MCPcopy Create free account
hub / github.com/SeismicSystems/summit / prune

Method prune

syncer/src/cache.rs:61–71  ·  view source on GitHub ↗

Prune the archives to the given view.

(&mut self, min_view: View)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 5

epochMethod · 0.80
iterMethod · 0.80
get_metadataMethod · 0.80
set_metadataMethod · 0.80
viewMethod · 0.80

Tested by

no test coverage detected