fix: automatic rebuilds, num_threads for localpools (#4583)

* fix: automatic rebuilds

* Fix concurrency for locapoolhandle
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-08-19 17:50:16 -07:00
1 parent 74163984be
commit 23908b9d49
5 files changed
+27 -8

No files matched your search

+3 -2
View File
@@ -267,13 +267,14 @@ pub(crate) async fn serve_all(args: ServeArgs, tracer: &TraceController) -> Resu
}
ServeUpdate::ToggleShouldRebuild => {
use crate::styles::{ERROR, NOTE_STYLE};
builder.automatic_rebuilds = !builder.automatic_rebuilds;
tracing::info!(
"Automatic rebuilds are currently: {}",
if builder.automatic_rebuilds {
"enabled"
format!("{NOTE_STYLE}enabled{NOTE_STYLE:#}")
} else {
"disabled"
format!("{ERROR}disabled{ERROR:#}")
}
)
}