From b3927c89a71882c007b595b2f2c05f10f2d89054 Mon Sep 17 00:00:00 2001 From: Joe-Blount Date: Fri, 17 Feb 2023 15:30:13 -0600 Subject: [PATCH] chore: clippy cleanup --- influxdb_iox/src/commands/run/compactor2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/influxdb_iox/src/commands/run/compactor2.rs b/influxdb_iox/src/commands/run/compactor2.rs index 96a86a3f0a..26940ee7ed 100644 --- a/influxdb_iox/src/commands/run/compactor2.rs +++ b/influxdb_iox/src/commands/run/compactor2.rs @@ -109,11 +109,11 @@ pub async fn command(config: Config) -> Result<(), Error> { let num_threads = config .compactor_config .query_exec_thread_count - .unwrap_or_else(|| num_cpus::get() - (1 as usize)); + .unwrap_or_else(|| num_cpus::get() - 1_usize); info!(%num_threads, "using specified number of threads"); let exec = Arc::new(Executor::new_with_config(ExecutorConfig { - num_threads: num_threads, + num_threads, target_query_partitions: num_threads, object_stores: [&parquet_store_real, &parquet_store_scratchpad] .into_iter()