Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm

single-thread tokio

not actually sure if this is needed for the raspi but initially i thought metrics weren't working. (they are fine)

Changed files
+3 -3
who-am-i
src
+3 -3
who-am-i/src/main.rs
··· 1 1 use clap::{ArgAction, Parser}; 2 - use metrics_exporter_prometheus::PrometheusBuilder; 2 + use metrics_exporter_prometheus::{PrometheusBuilder, BuildError as PromBuildError}; 3 3 use tokio_util::sync::CancellationToken; 4 4 use who_am_i::serve; 5 5 ··· 26 26 allowed_hosts: Vec<String>, 27 27 } 28 28 29 - #[tokio::main] 29 + #[tokio::main(flavor = "current_thread")] 30 30 async fn main() { 31 31 let shutdown = CancellationToken::new(); 32 32 ··· 51 51 serve(shutdown, args.app_secret, args.allowed_hosts, args.dev).await; 52 52 } 53 53 54 - fn install_metrics_server() -> Result<(), metrics_exporter_prometheus::BuildError> { 54 + fn install_metrics_server() -> Result<(), PromBuildError> { 55 55 println!("installing metrics server..."); 56 56 let host = [0, 0, 0, 0]; 57 57 let port = 8765;