From cca54fdfbf183388a8545d37b944d7e44fd70386 Mon Sep 17 00:00:00 2001 From: Alek Westover Date: Fri, 21 Jul 2023 13:23:23 -0400 Subject: [PATCH] delete useless file --- compute_tools/src/configurator.rs | 8 +++----- compute_tools/src/monitor.rs | 6 +++--- pgxn/neon/extension_server.h | 1 - 3 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 pgxn/neon/extension_server.h diff --git a/compute_tools/src/configurator.rs b/compute_tools/src/configurator.rs index b39481d20b..13550e0176 100644 --- a/compute_tools/src/configurator.rs +++ b/compute_tools/src/configurator.rs @@ -42,15 +42,13 @@ fn configurator_main_loop(compute: &Arc) { } } -pub fn launch_configurator( - compute: &Arc, -) -> Result, std::io::Error> { +pub fn launch_configurator(compute: &Arc) -> Result> { let compute = Arc::clone(compute); - thread::Builder::new() + Ok(thread::Builder::new() .name("compute-configurator".into()) .spawn(move || { configurator_main_loop(&compute); info!("configurator thread is exited"); - }) + })?) } diff --git a/compute_tools/src/monitor.rs b/compute_tools/src/monitor.rs index 03d0d021d0..d2e7b698dd 100644 --- a/compute_tools/src/monitor.rs +++ b/compute_tools/src/monitor.rs @@ -105,10 +105,10 @@ fn watch_compute_activity(compute: &ComputeNode) { } /// Launch a separate compute monitor thread and return its `JoinHandle`. -pub fn launch_monitor(state: &Arc) -> Result, std::io::Error> { +pub fn launch_monitor(state: &Arc) -> Result> { let state = Arc::clone(state); - thread::Builder::new() + Ok(thread::Builder::new() .name("compute-monitor".into()) - .spawn(move || watch_compute_activity(&state)) + .spawn(move || watch_compute_activity(&state))?) } diff --git a/pgxn/neon/extension_server.h b/pgxn/neon/extension_server.h deleted file mode 100644 index 8b13789179..0000000000 --- a/pgxn/neon/extension_server.h +++ /dev/null @@ -1 +0,0 @@ -