Skip to content

Commit

Permalink
fix: adds back http_timeout for frontend subcommand (#2555)
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 authored Oct 10, 2023
1 parent 19f300f commit 88f2667
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cmd/src/frontend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -85,6 +87,8 @@ pub struct StartCommand {
#[clap(long)]
http_addr: Option<String>,
#[clap(long)]
http_timeout: Option<u64>,
#[clap(long)]
grpc_addr: Option<String>,
#[clap(long)]
mysql_addr: Option<String>,
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 88f2667

Please sign in to comment.