Skip to content

Commit

Permalink
chore: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
chunshao90 committed May 19, 2023
1 parent ae126ed commit 6401050
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 23 deletions.
4 changes: 2 additions & 2 deletions analytic_engine/src/sst/parquet/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Copyright 2022 CeresDB Project Authors. Licensed under Apache-2.0.
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.

//! Sst implementation based on parquet.

pub mod async_reader;
pub mod encoding;
mod hybrid;
pub mod meta_data;
pub(crate) mod row_group_pruner;
mod row_group_pruner;
pub mod writer;

pub use async_reader::{Reader as AsyncParquetReader, ThreadedReader};
2 changes: 1 addition & 1 deletion proxy/src/grpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
mod prom_query;
mod route;
mod sql_query;
pub(crate) mod write;
mod write;
2 changes: 1 addition & 1 deletion proxy/src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Request handlers

pub mod admin;
pub(crate) mod error;
mod error;

mod prelude {
pub use catalog::manager::Manager as CatalogManager;
Expand Down
13 changes: 6 additions & 7 deletions proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@
#![feature(trait_alias)]

pub mod context;
pub(crate) mod error;
pub(crate) mod error_util;
#[allow(dead_code)]
mod error;
mod error_util;
pub mod forward;
pub(crate) mod grpc;
mod grpc;
pub mod handlers;
pub mod hotspot;
mod hotspot_lru;
pub mod http;
pub mod influxdb;
pub mod instance;
pub mod limiter;
pub(crate) mod read;
mod read;
pub mod schema_config_provider;
pub(crate) mod util;
pub(crate) mod write;
mod util;
mod write;

use std::{
sync::Arc,
Expand Down
2 changes: 1 addition & 1 deletion query_frontend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub mod container;
pub mod frontend;
pub mod influxql;
pub mod parser;
pub(crate) mod partition;
mod partition;
pub mod plan;
pub mod planner;
pub mod promql;
Expand Down
2 changes: 1 addition & 1 deletion server/src/grpc/meta_event_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use crate::grpc::{
metrics::META_EVENT_GRPC_HANDLER_DURATION_HISTOGRAM_VEC,
};

pub(crate) mod error;
mod error;
mod shard_operation;

/// Builder for [MetaServiceImpl].
Expand Down
2 changes: 1 addition & 1 deletion server/src/grpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ use crate::grpc::{
mod meta_event_service;
mod metrics;
mod remote_engine_service;
pub(crate) mod storage_service;
mod storage_service;

#[derive(Debug, Snafu)]
pub enum Error {
Expand Down
2 changes: 1 addition & 1 deletion server/src/grpc/remote_engine_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use crate::grpc::{
remote_engine_service::error::{ErrNoCause, ErrWithCause, Result, StatusCode},
};

pub(crate) mod error;
mod error;

const STREAM_QUERY_CHANNEL_LEN: usize = 20;
const DEFAULT_COMPRESS_MIN_LENGTH: usize = 80 * 1024;
Expand Down
2 changes: 1 addition & 1 deletion server/src/grpc/storage_service/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 CeresDB Project Authors. Licensed under Apache-2.0.

pub(crate) mod error;
mod error;
#[allow(dead_code)]
mod header;

Expand Down
2 changes: 1 addition & 1 deletion server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extern crate common_util;

pub mod config;
mod consts;
pub(crate) mod error_util;
mod error_util;
mod grpc;
mod http;
pub mod local_tables;
Expand Down
4 changes: 2 additions & 2 deletions table_engine/src/partition/rule/df_adapter/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 CeresDB Project Authors. Licensed under Apache-2.0.
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.

//! Partition rule datafusion adapter

Expand All @@ -13,7 +13,7 @@ use crate::partition::{
BuildPartitionRule, PartitionInfo, Result,
};

pub(crate) mod extractor;
mod extractor;

/// Partition rule's adapter for datafusion
pub struct DfPartitionRuleAdapter {
Expand Down
8 changes: 4 additions & 4 deletions table_engine/src/partition/rule/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright 2022 CeresDB Project Authors. Licensed under Apache-2.0.
// Copyright 2022-2023 CeresDB Project Authors. Licensed under Apache-2.0.

//! Partition rules

pub mod df_adapter;
pub(crate) mod factory;
pub(crate) mod filter;
pub(crate) mod key;
mod factory;
mod filter;
mod key;

use common_types::{datum::DatumKind, row::RowGroup};

Expand Down

0 comments on commit 6401050

Please sign in to comment.