cargo fmt
This commit is contained in:
parent
fff386f9d5
commit
b80d322650
@ -48,7 +48,9 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
let _h_disks = spawn_disks_sampler(state.clone(), std::time::Duration::from_secs(5));
|
let _h_disks = spawn_disks_sampler(state.clone(), std::time::Duration::from_secs(5));
|
||||||
|
|
||||||
// Web app: route /ws to the websocket handler
|
// Web app: route /ws to the websocket handler
|
||||||
async fn healthz() -> StatusCode { StatusCode::OK }
|
async fn healthz() -> StatusCode {
|
||||||
|
StatusCode::OK
|
||||||
|
}
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.route("/ws", get(ws::ws_handler))
|
.route("/ws", get(ws::ws_handler))
|
||||||
.route("/healthz", get(healthz))
|
.route("/healthz", get(healthz))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user