Skip to main content

MAX_EVENTS

Constant MAX_EVENTS 

Source
pub const MAX_EVENTS: usize = 16_384;
Expand description

Ceiling on the retained event log.

The log is diagnostic, not a durable audit trail. Keeping it finite means a peer that issues calls forever cannot grow kernel memory without bound; the oldest events are dropped first and Metrics keeps the totals.