Skip to content

Commit 4084327

Browse files
committed
Fix name
1 parent 07af2dd commit 4084327

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

server/src/handlers/livetail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub fn server() -> impl Future<Output = Result<(), Box<dyn std::error::Error + S
149149
.address
150150
.parse()
151151
.expect("valid socket address");
152-
addr.set_port(CONFIG.parseable.livetail_port);
152+
addr.set_port(CONFIG.parseable.grpc_port);
153153

154154
let service = FlightServiceImpl {};
155155

server/src/option.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ pub struct Server {
197197
pub open_ai_key: Option<String>,
198198

199199
/// Livetail port
200-
pub livetail_port: u16,
200+
pub grpc_port: u16,
201201

202202
/// Rows in Parquet Rowgroup
203203
pub row_group_size: usize,
@@ -253,8 +253,8 @@ impl FromArgMatches for Server {
253253
.cloned()
254254
.expect("default for send analytics");
255255
self.open_ai_key = m.get_one::<String>(Self::OPEN_AI_KEY).cloned();
256-
self.livetail_port = m
257-
.get_one::<u16>(Self::LIVETAIL_PORT)
256+
self.grpc_port = m
257+
.get_one::<u16>(Self::GRPC_PORT)
258258
.cloned()
259259
.expect("default for livetail port");
260260
// converts Gib to bytes before assigning
@@ -321,7 +321,7 @@ impl Server {
321321
pub const OPENID_CLIENT_ID: &str = "oidc-client";
322322
pub const OPENID_CLIENT_SECRET: &str = "oidc-client-secret";
323323
pub const OPENID_ISSUER: &str = "oidc-issuer";
324-
pub const LIVETAIL_PORT: &str = "livetail-port";
324+
pub const GRPC_PORT: &str = "grpc-port";
325325
// todo : what should this flag be
326326
pub const QUERY_MEM_POOL_SIZE: &str = "query-mempool-size";
327327
pub const ROW_GROUP_SIZE: &str = "row-group-size";
@@ -466,9 +466,9 @@ impl Server {
466466
.help("Set host global domain address"),
467467
)
468468
.arg(
469-
Arg::new(Self::LIVETAIL_PORT)
470-
.long(Self::LIVETAIL_PORT)
471-
.env("P_FLIGHT_PORT")
469+
Arg::new(Self::GRPC_PORT)
470+
.long(Self::GRPC_PORT)
471+
.env("P_GRPC_PORT")
472472
.value_name("PORT")
473473
.default_value("8001")
474474
.required(false)

0 commit comments

Comments
 (0)