Disabled ngrok for good.

This commit is contained in:
Nicolas Patry 2024-05-27 16:13:08 +00:00
parent 26d3519ff2
commit a03cc02a73
2 changed files with 4 additions and 3 deletions

View File

@ -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"] }

View File

@ -1392,8 +1392,8 @@ pub async fn run(
addr: SocketAddr,
allow_origin: Option<AllowOrigin>,
ngrok: bool,
ngrok_authtoken: Option<String>,
ngrok_edge: Option<String>,
_ngrok_authtoken: Option<String>,
_ngrok_edge: Option<String>,
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;