From a03cc02a7319869e38d4364118b9cbaf181820c1 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Mon, 27 May 2024 16:13:08 +0000 Subject: [PATCH] Disabled ngrok for good. --- router/Cargo.toml | 2 +- router/src/server.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/router/Cargo.toml b/router/Cargo.toml index 57599c11..fdfe1a5b 100644 --- a/router/Cargo.toml +++ b/router/Cargo.toml @@ -16,7 +16,7 @@ path = "src/main.rs" [dependencies] async-stream = "0.3.5" -axum = { version = "0.7.4", features = ["json"] } +axum = { version = "0.7", features = ["json"] } axum-tracing-opentelemetry = "0.16" text-generation-client = { path = "client" } clap = { version = "4.4.5", features = ["derive", "env"] } diff --git a/router/src/server.rs b/router/src/server.rs index 6e655913..b1be0bb5 100644 --- a/router/src/server.rs +++ b/router/src/server.rs @@ -1392,8 +1392,8 @@ pub async fn run( addr: SocketAddr, allow_origin: Option, ngrok: bool, - ngrok_authtoken: Option, - ngrok_edge: Option, + _ngrok_authtoken: Option, + _ngrok_edge: Option, tokenizer_config: HubTokenizerConfig, processor_config: HubProcessorConfig, messages_api_enabled: bool, @@ -1666,6 +1666,7 @@ pub async fn run( if ngrok { #[cfg(feature = "ngrok")] { + panic!("ngrok feature is not functional with axum=0.7 and hyper=1, waiting on https://github.com/ngrok/ngrok-rust/pull/137/files to re-enable."); // use ngrok::config::TunnelBuilder; // let _ = addr;