Skip to content

Commit

Permalink
Use re-exported Chitchat symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload committed Dec 6, 2023
1 parent 3242dde commit 012ff87
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 20 deletions.
3 changes: 0 additions & 3 deletions quickwit/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions quickwit/quickwit-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ path = "src/generate_markdown.rs"
[dependencies]
anyhow = { workspace = true }
async-trait = { workspace = true }
bytesize = { workspace = true }
bytes = { workspace = true }
chitchat = { workspace = true }
bytesize = { workspace = true }
chrono = { workspace = true }
clap = { workspace = true }
colored = { workspace = true }
Expand Down
4 changes: 1 addition & 3 deletions quickwit/quickwit-cli/src/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ use std::time::{Duration, Instant};
use std::{env, fmt, io};

use anyhow::{bail, Context};
use chitchat::transport::ChannelTransport;
use chitchat::FailureDetectorConfig;
use clap::{arg, ArgMatches, Command};
use colored::{ColoredString, Colorize};
use humantime::format_duration;
use quickwit_actors::{ActorExitStatus, ActorHandle, Universe};
use quickwit_cluster::{Cluster, ClusterMember};
use quickwit_cluster::{ChannelTransport, Cluster, ClusterMember, FailureDetectorConfig};
use quickwit_common::pubsub::EventBroker;
use quickwit_common::runtimes::RuntimesConfig;
use quickwit_common::uri::Uri;
Expand Down
4 changes: 1 addition & 3 deletions quickwit/quickwit-cluster/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ mod cluster;
mod member;
mod node;

#[cfg(any(test, feature = "testsuite"))]
pub use chitchat::transport::ChannelTransport;
use chitchat::transport::UdpTransport;
use chitchat::FailureDetectorConfig;
pub use chitchat::{KeyChangeEvent, ListenerHandle};
pub use chitchat::{FailureDetectorConfig, KeyChangeEvent, ListenerHandle};
use quickwit_config::service::QuickwitService;
use quickwit_config::NodeConfig;
use quickwit_proto::indexing::CpuCapacity;
Expand Down
1 change: 0 additions & 1 deletion quickwit/quickwit-control-plane/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ mockall = { workspace = true }
proptest = { workspace = true }
rand = { workspace = true }

chitchat = { workspace = true }
quickwit-actors = { workspace = true, features = ["testsuite"] }
quickwit-cluster = { workspace = true, features = ["testsuite"] }
quickwit-common = { workspace = true, features = ["testsuite"] }
Expand Down
3 changes: 1 addition & 2 deletions quickwit/quickwit-control-plane/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
use std::num::NonZeroUsize;
use std::time::Duration;

use chitchat::transport::ChannelTransport;
use fnv::FnvHashMap;
use futures::{Stream, StreamExt};
use quickwit_actors::{Inbox, Mailbox, Observe, Universe};
use quickwit_cluster::{create_cluster_for_test, Cluster, ClusterChange};
use quickwit_cluster::{create_cluster_for_test, ChannelTransport, Cluster, ClusterChange};
use quickwit_common::test_utils::wait_until_predicate;
use quickwit_common::tower::{Change, Pool};
use quickwit_config::service::QuickwitService;
Expand Down
3 changes: 1 addition & 2 deletions quickwit/quickwit-serve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,11 @@ time = { workspace = true }

[dev-dependencies]
assert-json-diff = { workspace = true }
chitchat = { workspace = true }
itertools = { workspace = true }
mockall = { workspace = true }
rand = { workspace = true }
tokio = { workspace = true }
tempfile = { workspace = true }
tokio = { workspace = true }

quickwit-actors = { workspace = true, features = ["testsuite"] }
quickwit-cluster = { workspace = true, features = ["testsuite"] }
Expand Down
3 changes: 1 addition & 2 deletions quickwit/quickwit-serve/src/health_check_api/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ async fn get_readiness(cluster: Cluster) -> impl warp::Reply {
#[cfg(test)]
mod tests {

use chitchat::transport::ChannelTransport;
use quickwit_cluster::create_cluster_for_test;
use quickwit_cluster::{create_cluster_for_test, ChannelTransport};

#[tokio::test]
async fn test_rest_search_api_health_checks() {
Expand Down
3 changes: 1 addition & 2 deletions quickwit/quickwit-serve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,7 @@ async fn check_cluster_configuration(

#[cfg(test)]
mod tests {
use chitchat::transport::ChannelTransport;
use quickwit_cluster::{create_cluster_for_test, ClusterNode};
use quickwit_cluster::{create_cluster_for_test, ChannelTransport, ClusterNode};
use quickwit_common::uri::Uri;
use quickwit_config::SearcherConfig;
use quickwit_metastore::{metastore_for_test, IndexMetadata};
Expand Down

0 comments on commit 012ff87

Please sign in to comment.