From 695b5f9d88c33b4c141a9d701b9e43ecb9f49f81 Mon Sep 17 00:00:00 2001 From: Dmitry Rodionov Date: Wed, 27 Apr 2022 13:42:48 +0300 Subject: [PATCH] Remove obsolete failpoint in proxy When failpoint feature is disabled it throws away passed code so code inside is not guaranteed to compile when feature is disabled. In this particular case code is obsolete so removing it. --- Cargo.lock | 1 - proxy/Cargo.toml | 1 - proxy/src/auth/credentials.rs | 4 ---- 3 files changed, 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3797e4e76b..bac5dfb674 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2002,7 +2002,6 @@ dependencies = [ "base64", "bytes", "clap 3.0.14", - "fail", "futures", "hashbrown", "hex", diff --git a/proxy/Cargo.toml b/proxy/Cargo.toml index 25aebc03e8..f7e872ceb9 100644 --- a/proxy/Cargo.toml +++ b/proxy/Cargo.toml @@ -8,7 +8,6 @@ anyhow = "1.0" base64 = "0.13.0" bytes = { version = "1.0.1", features = ['serde'] } clap = "3.0" -fail = "0.5.0" futures = "0.3.13" hashbrown = "0.11.2" hex = "0.4.3" diff --git a/proxy/src/auth/credentials.rs b/proxy/src/auth/credentials.rs index 7c8ba28622..c3bb6da4f8 100644 --- a/proxy/src/auth/credentials.rs +++ b/proxy/src/auth/credentials.rs @@ -48,10 +48,6 @@ impl ClientCredentials { config: &ProxyConfig, client: &mut PqStream, ) -> Result { - fail::fail_point!("proxy-authenticate", |_| { - Err(AuthError::auth_failed("failpoint triggered")) - }); - use crate::config::ClientAuthMethod::*; use crate::config::RouterConfig::*; match &config.router_config {