From e02d3404e3e3048e165c06c444135d678ef9c792 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Sun, 3 Mar 2024 19:55:34 +0800 Subject: [PATCH] fix: some comments (#2843) Signed-off-by: cui fliter --- CONTRIBUTING.md | 2 +- src/common/infra/mod.rs | 2 +- src/common/utils/auth.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0a06ae030..17a724b41 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -99,7 +99,7 @@ npm run dev This will start UI server on port 8081, to change port specify it in vite.config.ts -In order for you to effectively use the UI you would want to have the openobserve API server running in a seperate window that will accept requests from the UI. +In order for you to effectively use the UI you would want to have the openobserve API server running in a separate window that will accept requests from the UI. ## Swagger diff --git a/src/common/infra/mod.rs b/src/common/infra/mod.rs index 20e7acfc9..11a655853 100644 --- a/src/common/infra/mod.rs +++ b/src/common/infra/mod.rs @@ -26,7 +26,7 @@ pub async fn init() -> Result<(), anyhow::Error> { // because of asynchronous, we need to wait for a while tokio::time::sleep(tokio::time::Duration::from_secs(1)).await; - // check imcomplete work group + // check incomplete work group #[cfg(feature = "enterprise")] o2_enterprise::enterprise::search::queue::clean(CONFIG.limit.query_timeout as i64).await?; diff --git a/src/common/utils/auth.rs b/src/common/utils/auth.rs index e52ea88b4..f2963ef9c 100644 --- a/src/common/utils/auth.rs +++ b/src/common/utils/auth.rs @@ -321,7 +321,7 @@ impl FromRequest for AuthExtractor { let object_type = match stream_type { Some(stream_type) => { if stream_type.eq(&StreamType::EnrichmentTables) { - // since enrichment tables have seperate permissions + // since enrichment tables have separate permissions let stream_type_str = format!("{stream_type}"); object_type.replace(