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 20, 2024
1 parent fa7b5fb commit 156deee
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 @@ -13,7 +13,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 @@ -23,7 +22,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 @@ -88,7 +86,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 @@ -121,15 +118,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 156deee

Please sign in to comment.