chiark / gitweb /
daemon: Reorder routes in order of likely frequency
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 2 Apr 2022 14:09:01 +0000 (15:09 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 2 Apr 2022 14:09:22 +0000 (15:09 +0100)
I'm not sure if this is at all relevant but it seems sensible
and is at worst harmless.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/main.rs

index c5c135b8ccc6eafaa6aef83bdedb1b76148d7fc4..51cbd3d9282afa7d90f2849658e98a947ad6d8d5 100644 (file)
@@ -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())