Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion thread-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ mod tests {
.read_to_string(&mut buf)
.unwrap();
let cfg: ThreadManagerConfig = toml::from_str(&buf).unwrap();
println!("{:?}", cfg);
println!("{cfg:?}");
}
}
// Nobody runs Agave on windows, and on Mac we can not set mask affinity without patching external crate
Expand Down
5 changes: 4 additions & 1 deletion thread-manager/src/native_thread_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ impl<T> JoinHandle<T> {
impl<T> Drop for JoinHandle<T> {
fn drop(&mut self) {
if self.std_handle.is_some() {
warn!("Attempting to drop a Join Handle of a running thread will leak thread IDs, please join your threads!");
warn!(
"Attempting to drop a Join Handle of a running thread will leak thread IDs, \
please join your threads!"
);
self.join_inner().expect("Child thread panicked");
}
}
Expand Down
2 changes: 1 addition & 1 deletion thread-manager/src/tokio_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl TokioRuntime {
.event_interval(cfg.event_interval)
.thread_name_fn(move || {
let id = atomic_id.fetch_add(1, Ordering::Relaxed);
format!("{}-{}", base_name, id)
format!("{base_name}-{id}")
})
.on_thread_park({
let counters = counters.clone();
Expand Down
Loading