From 257202b9a6699aa85548f3a5e98b3d1ca5dbda7e Mon Sep 17 00:00:00 2001 From: Kevin Axel Date: Fri, 12 Jan 2024 22:53:53 +0800 Subject: [PATCH] fix check Signed-off-by: Kevin Axel --- src/object_store/Cargo.toml | 2 +- src/object_store/src/object/mod.rs | 1 + src/tests/simulation/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/object_store/Cargo.toml b/src/object_store/Cargo.toml index 9810e3b4e0625..61f526511c3ab 100644 --- a/src/object_store/Cargo.toml +++ b/src/object_store/Cargo.toml @@ -26,6 +26,7 @@ hyper = { version = "0.14", features = ["tcp", "client"] } hyper-rustls = { version = "0.24.2", features = ["webpki-roots"] } hyper-tls = "0.5.0" itertools = "0.12" +madsim = "0.2.22" opendal = "0.44" prometheus = { version = "0.13", features = ["process"] } risingwave_common = { workspace = true } @@ -36,7 +37,6 @@ thiserror-ext = { workspace = true } tokio = { version = "0.2", package = "madsim-tokio", features = ["fs"] } tokio-retry = "0.3" tracing = "0.1" -madsim = "0.2.22" # This crate is excluded from hakari (see hakari.toml) after hdfs is introduced...## [target.'cfg(not(madsim))'.dependencies] # workspace-hack = { path = "../workspace-hack" } # diff --git a/src/object_store/src/object/mod.rs b/src/object_store/src/object/mod.rs index 5216abec3a914..db490dfd47284 100644 --- a/src/object_store/src/object/mod.rs +++ b/src/object_store/src/object/mod.rs @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#[cfg(madsim)] pub mod sim; use std::ops::{Range, RangeBounds}; use std::sync::Arc; diff --git a/src/tests/simulation/Cargo.toml b/src/tests/simulation/Cargo.toml index 5bac95f6f00d0..a08fc68e8c33a 100644 --- a/src/tests/simulation/Cargo.toml +++ b/src/tests/simulation/Cargo.toml @@ -32,7 +32,6 @@ prometheus = { version = "0.13" } rand = "0.8" rand_chacha = { version = "0.3.1" } rdkafka = { workspace = true } -risingwave_object_store = { workspace = true } risingwave_common = { workspace = true } risingwave_compactor = { workspace = true } risingwave_compute = { workspace = true } @@ -43,6 +42,7 @@ risingwave_expr_impl = { workspace = true } risingwave_frontend = { workspace = true } risingwave_hummock_sdk = { workspace = true, features = ["enable_test_epoch"] } risingwave_meta_node = { workspace = true } +risingwave_object_store = { workspace = true } risingwave_pb = { workspace = true } risingwave_rpc_client = { workspace = true } risingwave_sqlparser = { workspace = true }