Skip to main content

load_routes

Function load_routes 

Source
pub async fn load_routes(pool: &PgPool) -> ProxyResult<Vec<Route>>
Expand description

Load every route, highest priority first.

The ordering is not cosmetic: routes are matched in priority order, so loading them in that order means the in-memory table is already in matching order. name breaks ties so that two runs against an unchanged database produce the same table.