Skip to main content

MAX_PACING_MS

Constant MAX_PACING_MS 

Source
pub const MAX_PACING_MS: u64 = 3_600_000;
Expand description

The largest any pacing setting may be, in milliseconds.

One hour. GitHub’s own harshest published bound on content-generating requests works out at one every 7.2 seconds, so an hour is already three orders of magnitude past anything a real limit asks for, and past it the settings stop describing pacing at all: a wait budget beyond it is the unbounded wait this whole mechanism exists to replace, and an interval beyond it is a command that never sends its second mutation. It also keeps the clock arithmetic in GitHubProjectsSource::reserve_mutation_slot inside what an Instant can hold on every platform.