From: Ian Jackson Date: Sat, 2 Apr 2022 14:09:01 +0000 (+0100) Subject: daemon: Reorder routes in order of likely frequency X-Git-Tag: otter-1.0.0~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=da20e0b4401285cc9c08ed6c73b1f3721cad830e;p=otter.git daemon: Reorder routes in order of likely frequency I'm not sure if this is at all relevant but it seems sensible and is at worst harmless. Signed-off-by: Ian Jackson --- diff --git a/daemon/main.rs b/daemon/main.rs index c5c135b8..51cbd3d9 100644 --- a/daemon/main.rs +++ b/daemon/main.rs @@ -534,13 +534,13 @@ async fn main() -> Result<(),StartupError> { // them as unit structs, not functions or data values. The // result is that they are *type names* which makes them // impossible to locally rebind. + api::routes(), + session::routes(), + r_updates, r_loading_l, r_loading_p, - r_bundle, - r_updates, - session::routes(), - api::routes(), resource_routes(), + r_bundle, ]) .app_data(json_config) .app_data(templates.clone())