Skip to main content

LAN_PUBKEY_LOOKUP_RATE_LIMIT

Constant LAN_PUBKEY_LOOKUP_RATE_LIMIT 

Source
const LAN_PUBKEY_LOOKUP_RATE_LIMIT: u32 = 10;
Expand description

Fan-outs per second find_agent_lan_pubkey will perform before failing closed (returning None without querying any peer). Generous for legitimate traffic — LAN jekts to previously-unseen senders are rare once agents have been talking a while, and the 60s positive/negative cache absorbs repeat lookups for the SAME agent_id — while still bounding the worst case to a small, fixed number of outbound requests per second regardless of how many distinct agent_ids are probed.