Skip to main content

DEFAULT_MAX_WARNINGS

Constant DEFAULT_MAX_WARNINGS 

Source
pub const DEFAULT_MAX_WARNINGS: usize = 10_000;
Expand description

How many warnings a WarningCollector::new collector keeps before it starts counting instead of storing.

A warning is emitted by the code that notices the condition, and that code runs once per request or per row: an extension that warns about every request made without certificate verification grew the list by about 190 bytes each (380 MB for two million), without bound, for as long as nobody drained it.