From 88f26673f0d7d7bd6e19be3d7ad5ca5dfd45c47f Mon Sep 17 00:00:00 2001 From: dennis zhuang Date: Tue, 10 Oct 2023 11:05:16 +0800 Subject: [PATCH] fix: adds back http_timeout for frontend subcommand (#2555) --- src/cmd/src/frontend.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cmd/src/frontend.rs b/src/cmd/src/frontend.rs index 0cb0cb2bd6e2..e6f54590461c 100644 --- a/src/cmd/src/frontend.rs +++ b/src/cmd/src/frontend.rs @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +use std::time::Duration; + use clap::Parser; use common_telemetry::logging; use frontend::frontend::FrontendOptions; @@ -85,6 +87,8 @@ pub struct StartCommand { #[clap(long)] http_addr: Option, #[clap(long)] + http_timeout: Option, + #[clap(long)] grpc_addr: Option, #[clap(long)] mysql_addr: Option, @@ -138,6 +142,10 @@ impl StartCommand { opts.http.addr = addr.clone() } + if let Some(http_timeout) = self.http_timeout { + opts.http.timeout = Duration::from_secs(http_timeout) + } + if let Some(disable_dashboard) = self.disable_dashboard { opts.http.disable_dashboard = disable_dashboard; }