Skip to main content

MAX_DEPTH

Constant MAX_DEPTH 

Source
pub const MAX_DEPTH: usize = 10;
Expand description

How deep into a record this walks.

Reasonable range: 4 to 32. A record is already bounded by its lexicon and by the store’s own limits, so this is a second bound rather than the one that matters: it stops a pathological unknown field from costing a walk proportional to whatever somebody nested inside it. Ten clears every shape this project’s own lexicons and app.bsky.* reach — a quote of a quote’s embedded record is six.