Skip to main content

query_deadline

Function query_deadline 

Source
pub fn query_deadline(environment: &[(OsString, OsString)]) -> Duration
Expand description

What: The deadline of a query: the push deadline, but never more than the ceiling. Why: One setting bounds every Git child of the auto-push, and a long push deadline must not stretch queries.

In TS you’d write (pseudocode):

Math.min(pushDeadlineMs(env), QUERY_CEILING_MS)