Skip to main content

REQUEST_BUDGET_WINDOW_MINUTES

Constant REQUEST_BUDGET_WINDOW_MINUTES 

Source
pub const REQUEST_BUDGET_WINDOW_MINUTES: u64 = 15;
Expand description

How long a RequestBudget lasts before it resets, in minutes.

Short, so a tenant that spends its budget on an import waits minutes for the next window rather than a day. The budgets are sized to the window: each fits LARGEST_SYNTHEA_BUNDLE_POINTS, so no realistic single import is refused outright.