Skip to content

Commit

Permalink
integration/utils: Remove unnecessary annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorak-mmk committed Nov 4, 2024
1 parent 2302e07 commit ef8e2e7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scylla/tests/integration/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use std::time::{Duration, SystemTime, UNIX_EPOCH};

use scylla_proxy::{Node, Proxy, ProxyError, RunningProxy, ShardAwareness};

#[cfg(test)]
pub(crate) fn setup_tracing() {
let _ = tracing_subscriber::fmt::fmt()
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
Expand All @@ -21,7 +20,6 @@ pub(crate) fn setup_tracing() {

static UNIQUE_COUNTER: AtomicUsize = AtomicUsize::new(0);

#[allow(unused)]
pub(crate) fn unique_keyspace_name() -> String {
let cnt = UNIQUE_COUNTER.fetch_add(1, Ordering::SeqCst);
let name = format!(
Expand Down Expand Up @@ -86,7 +84,6 @@ where
running_proxy.finish().await
}

#[allow(unused)]
pub(crate) async fn supports_feature(session: &Session, feature: &str) -> bool {
// Cassandra doesn't have a concept of features, so first detect
// if there is the `supported_features` column in system.local
Expand Down Expand Up @@ -117,15 +114,13 @@ pub(crate) async fn supports_feature(session: &Session, feature: &str) -> bool {
.any(|f| f == feature)
}

#[allow(unused)]
pub(crate) async fn scylla_supports_tablets(session: &Session) -> bool {
supports_feature(session, "TABLETS").await
}

// Creates a generic session builder based on conditional compilation configuration
// For SessionBuilder of DefaultMode type, adds localhost to known hosts, as all of the tests
// connect to localhost.
#[allow(unused)]
pub(crate) fn create_new_session_builder() -> GenericSessionBuilder<impl SessionBuilderKind> {
let session_builder = {
#[cfg(not(scylla_cloud_tests))]
Expand Down

0 comments on commit ef8e2e7

Please sign in to comment.