From 3543dda30f59a38496d2aadf6056bc135d7c9ce7 Mon Sep 17 00:00:00 2001 From: fmassot Date: Mon, 15 Jan 2024 22:20:00 +0100 Subject: [PATCH] Fix fmt in quickwit-lambda --- quickwit/quickwit-lambda/src/bin/indexer.rs | 2 +- quickwit/quickwit-lambda/src/bin/searcher.rs | 2 +- quickwit/quickwit-lambda/src/indexer/environment.rs | 2 +- quickwit/quickwit-lambda/src/indexer/handler.rs | 2 +- quickwit/quickwit-lambda/src/indexer/ingest.rs | 12 ++++++------ quickwit/quickwit-lambda/src/indexer/mod.rs | 2 +- quickwit/quickwit-lambda/src/indexer/model.rs | 2 +- quickwit/quickwit-lambda/src/lib.rs | 2 +- quickwit/quickwit-lambda/src/logger.rs | 4 ++-- quickwit/quickwit-lambda/src/searcher/environment.rs | 2 +- quickwit/quickwit-lambda/src/searcher/handler.rs | 2 +- quickwit/quickwit-lambda/src/searcher/mod.rs | 2 +- quickwit/quickwit-lambda/src/searcher/search.rs | 2 +- quickwit/quickwit-lambda/src/utils.rs | 4 ++-- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/quickwit/quickwit-lambda/src/bin/indexer.rs b/quickwit/quickwit-lambda/src/bin/indexer.rs index 078896b4b19..4b8aea034e0 100644 --- a/quickwit/quickwit-lambda/src/bin/indexer.rs +++ b/quickwit/quickwit-lambda/src/bin/indexer.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/bin/searcher.rs b/quickwit/quickwit-lambda/src/bin/searcher.rs index ec6e187109f..eeef43d00bc 100644 --- a/quickwit/quickwit-lambda/src/bin/searcher.rs +++ b/quickwit/quickwit-lambda/src/bin/searcher.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/indexer/environment.rs b/quickwit/quickwit-lambda/src/indexer/environment.rs index 6a048694f64..92f264a268c 100644 --- a/quickwit/quickwit-lambda/src/indexer/environment.rs +++ b/quickwit/quickwit-lambda/src/indexer/environment.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/indexer/handler.rs b/quickwit/quickwit-lambda/src/indexer/handler.rs index 9aefbd991a2..9160b10b9b8 100644 --- a/quickwit/quickwit-lambda/src/indexer/handler.rs +++ b/quickwit/quickwit-lambda/src/indexer/handler.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/indexer/ingest.rs b/quickwit/quickwit-lambda/src/indexer/ingest.rs index de0023a31c6..c75de49e5ab 100644 --- a/quickwit/quickwit-lambda/src/indexer/ingest.rs +++ b/quickwit/quickwit-lambda/src/indexer/ingest.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. @@ -169,7 +169,7 @@ pub async fn ingest(args: IngestArgs) -> anyhow::Result { metastore .create_index(CreateIndexRequest::try_from_index_config(index_config)?) .await?; - debug!("Index created"); + debug!("index created"); } else if args.overwrite { info!( index_id = *INDEX_ID, @@ -221,9 +221,9 @@ pub async fn ingest(args: IngestArgs) -> anyhow::Result { let indexing_pipeline_handle = indexing_server_mailbox .ask_for_res(DetachIndexingPipeline { pipeline_id }) .await?; - debug!("Wait for indexing statistics"); + debug!("wait for indexing statistics"); let statistics = start_statistics_reporting_loop(indexing_pipeline_handle, false).await?; - debug!("Indexing completed, tear down actors"); + debug!("indexing completed, tear down actors"); merge_pipeline_handle.quit().await; universe .send_exit_with_success(&indexing_server_mailbox) @@ -232,9 +232,9 @@ pub async fn ingest(args: IngestArgs) -> anyhow::Result { universe.quit().await; if args.clear_cache { - info!("Clearing local cache directory..."); + info!("clearing local cache directory"); clear_cache_directory(&config.data_dir_path).await?; - info!("Local cache directory cleared."); + info!("local cache directory cleared"); } if statistics.num_invalid_docs > 0 { diff --git a/quickwit/quickwit-lambda/src/indexer/mod.rs b/quickwit/quickwit-lambda/src/indexer/mod.rs index 648843dfe37..a77e8485865 100644 --- a/quickwit/quickwit-lambda/src/indexer/mod.rs +++ b/quickwit/quickwit-lambda/src/indexer/mod.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/indexer/model.rs b/quickwit/quickwit-lambda/src/indexer/model.rs index d18adf7b2fb..fe6ae14aea4 100644 --- a/quickwit/quickwit-lambda/src/indexer/model.rs +++ b/quickwit/quickwit-lambda/src/indexer/model.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/lib.rs b/quickwit/quickwit-lambda/src/lib.rs index ae1a24846e5..0bb10d0cd83 100644 --- a/quickwit/quickwit-lambda/src/lib.rs +++ b/quickwit/quickwit-lambda/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/logger.rs b/quickwit/quickwit-lambda/src/logger.rs index 876dab980b4..2a10c3ab6ed 100644 --- a/quickwit/quickwit-lambda/src/logger.rs +++ b/quickwit/quickwit-lambda/src/logger.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. @@ -143,7 +143,7 @@ pub fn setup_lambda_tracer() -> anyhow::Result<()> { pub fn flush_tracer() { if let Some(Some(tracer_provider)) = TRACER_PROVIDER.get() { - debug!("Flush tracers"); + debug!("flush tracers"); for res in tracer_provider.force_flush() { if let Err(err) = res { debug!(err=?err, "Failed to flush tracer"); diff --git a/quickwit/quickwit-lambda/src/searcher/environment.rs b/quickwit/quickwit-lambda/src/searcher/environment.rs index 471fe26af9e..b995949dff9 100644 --- a/quickwit/quickwit-lambda/src/searcher/environment.rs +++ b/quickwit/quickwit-lambda/src/searcher/environment.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/searcher/handler.rs b/quickwit/quickwit-lambda/src/searcher/handler.rs index e66c93c41ec..e57de93bdac 100644 --- a/quickwit/quickwit-lambda/src/searcher/handler.rs +++ b/quickwit/quickwit-lambda/src/searcher/handler.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/searcher/mod.rs b/quickwit/quickwit-lambda/src/searcher/mod.rs index e88fbe57c17..ed17d810d9d 100644 --- a/quickwit/quickwit-lambda/src/searcher/mod.rs +++ b/quickwit/quickwit-lambda/src/searcher/mod.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/searcher/search.rs b/quickwit/quickwit-lambda/src/searcher/search.rs index 66dac14c2bf..1868c9243f2 100644 --- a/quickwit/quickwit-lambda/src/searcher/search.rs +++ b/quickwit/quickwit-lambda/src/searcher/search.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. diff --git a/quickwit/quickwit-lambda/src/utils.rs b/quickwit/quickwit-lambda/src/utils.rs index 237485eef85..81781ff3aac 100644 --- a/quickwit/quickwit-lambda/src/utils.rs +++ b/quickwit/quickwit-lambda/src/utils.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Quickwit, Inc. +// Copyright (C) 2024 Quickwit, Inc. // // Quickwit is offered under the AGPL v3.0 and as commercial software. // For commercial licensing, contact us at hello@quickwit.io. @@ -33,7 +33,7 @@ pub(crate) async fn load_node_config( let config = NodeConfig::load(ConfigFormat::Yaml, config_template.as_bytes()) .await .with_context(|| format!("Failed to parse node config `{config_template}`."))?; - info!(config=?config, "Loaded node config."); + info!(config=?config, "loaded node config"); let storage_resolver = StorageResolver::configured(&config.storage_configs); let metastore_resolver = MetastoreResolver::configured(storage_resolver.clone(), &config.metastore_configs);