Function holochain::conductor::kitsune_host_impl::query_size_limited_regions
source · pub async fn query_size_limited_regions(
db: DbWrite<DbKindDht>,
topology: Topology,
regions: Vec<Region>,
size_limit: u32
) -> ConductorResult<Vec<Region>>
Expand description
Given a set of Regions, return an equivalent set of Regions (which covers the same
area of the DHT) such that no region is larger than size_limit
.
Regions larger than size_limit will be quadrisected, and the size of each subregion
will be fetched from the database. The quadrisecting is recursive until either all
regions are either small enough, or cannot be further subdivided.