cargo fmt

This commit is contained in:
Heikki Linnakangas
2025-07-14 20:42:25 +03:00
parent 2a8850523e
commit b2c5aa7720
2 changed files with 2 additions and 4 deletions

View File

@@ -30,6 +30,7 @@ pub struct LfcMetrics {
// index 59 is size of working set accessed within last 60 minutes.
pub lfc_approximate_working_set_size_windows: [i64; 60],
}
pub fn callback_get_lfc_metrics() -> LfcMetrics {
unsafe { callback_get_lfc_metrics_unsafe() }
}

View File

@@ -32,10 +32,7 @@ pub extern "C" fn communicator_worker_process_launch(
.build()
.unwrap();
let worker_struct = runtime.block_on(main_loop::init(
tenant_id,
timeline_id,
));
let worker_struct = runtime.block_on(main_loop::init(tenant_id, timeline_id));
let worker_struct = Box::leak(Box::new(worker_struct));
runtime.block_on(worker_struct.launch_metrics_exporter());