style(host): rustfmt sweep for the console-sweep push

b8da32e8 landed with two call sites and a log line rustfmt rewraps;
CI's cargo fmt --all --check gate was failing on every run since.
No code change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-15 21:32:08 +02:00
parent 75b3c94f60
commit 6b9f261dff
2 changed files with 26 additions and 8 deletions
+14 -2
View File
@@ -252,7 +252,13 @@ pub fn serve(
);
tokio::try_join!(
nvhttp::run(state.clone()),
crate::mgmt::run(state.clone(), mgmt, Some(np.clone()), stats.clone(), gamestream),
crate::mgmt::run(
state.clone(),
mgmt,
Some(np.clone()),
stats.clone(),
gamestream
),
crate::punktfunk1::serve(native_opts, native.mgmt_port, np, stats.clone()),
)?;
} else {
@@ -263,7 +269,13 @@ pub fn serve(
(GameStream OFF — pass --gamestream for stock-Moonlight compat)"
);
tokio::try_join!(
crate::mgmt::run(state.clone(), mgmt, Some(np.clone()), stats.clone(), gamestream),
crate::mgmt::run(
state.clone(),
mgmt,
Some(np.clone()),
stats.clone(),
gamestream
),
crate::punktfunk1::serve(native_opts, native.mgmt_port, np, stats.clone()),
)?;
}
+8 -2
View File
@@ -1530,7 +1530,9 @@ async fn get_local_summary(State(st): State<Arc<MgmtState>>) -> Json<LocalSummar
fps: l.fps,
})
.or_else(|| {
crate::session_status::snapshot().first().map(|s| SessionInfo {
crate::session_status::snapshot()
.first()
.map(|s| SessionInfo {
width: s.width,
height: s.height,
fps: s.fps,
@@ -2004,7 +2006,11 @@ async fn stop_session(State(st): State<Arc<MgmtState>>) -> StatusCode {
// session registry), so signal every live native session to tear down too.
let native = crate::session_status::count();
crate::session_status::stop_all();
tracing::info!(was_streaming, native_sessions = native, "management API: session stopped");
tracing::info!(
was_streaming,
native_sessions = native,
"management API: session stopped"
);
StatusCode::NO_CONTENT
}