Expand description
§Production PostBundleManager — cache, fetch, heal
The real implementation of
crate::client::post_bundle::post_bundle_manager::PostBundleManager used in
production. Lookup proceeds in three stages:
- Cache — check
BUCKET_POST_BUNDLEincrate::client::client_storage::client_storage::ClientStorage. Serve hot entries immediately; serve stale entries only if the bundle is already sealed. - Network — otherwise walk peers closest to the bucket’s location id via a
crate::client::peer_tracker::peer_iterator::PeerIteratorand issueGetPostBundleV1RPCs, gated by thecrate::client::caching::cache_radius_trackerto avoid re-hammering already-cached peers. Concurrent lookups for the same(location, time)are de-duplicated via a per-keyMutexso only one RPC actually goes out. - Heal — if multiple peers return divergent bundles, spawn
crate::client::post_bundle::post_bundle_healingin the background to reconcile them.
Structs§
- Live
Post Bundle Manager - The production
PostBundleManagerimplementation — the one that actually talks to the network.