Page MenuHomePhabricator

D6859.diff
No OneTemporary

D6859.diff

diff --git a/services/feature-flags/src/config.rs b/services/feature-flags/src/config.rs
--- a/services/feature-flags/src/config.rs
+++ b/services/feature-flags/src/config.rs
@@ -4,7 +4,9 @@
use once_cell::sync::Lazy;
use tracing::info;
-use crate::constants::{AWS_REGION, DEFAULT_LOCALSTACK_URL};
+use crate::constants::{
+ AWS_REGION, DEFAULT_LOCALSTACK_URL, HTTP_SERVER_DEFAULT_PORT,
+};
#[derive(Parser)]
#[command(version, about, long_about = None)]
@@ -16,6 +18,8 @@
/// AWS Localstack service URL, applicable in sandbox mode
#[arg(long, default_value_t = DEFAULT_LOCALSTACK_URL.to_string())]
pub localstack_url: String,
+ #[arg(long = "port", default_value_t = HTTP_SERVER_DEFAULT_PORT)]
+ pub http_port: u16,
}
pub static CONFIG: Lazy<AppConfig> = Lazy::new(|| AppConfig::parse());
diff --git a/services/feature-flags/src/constants.rs b/services/feature-flags/src/constants.rs
--- a/services/feature-flags/src/constants.rs
+++ b/services/feature-flags/src/constants.rs
@@ -2,6 +2,7 @@
pub const DEFAULT_LOCALSTACK_URL: &str = "http://localhost:4566";
pub const LOG_LEVEL_ENV_VAR: &str =
tracing_subscriber::filter::EnvFilter::DEFAULT_ENV;
+pub const HTTP_SERVER_DEFAULT_PORT: u16 = 50051;
// The configuration of feature flags is stored in a table in DynamoDB.
// Each row is identified by a compound primary key consisting of

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 29, 12:34 AM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595273
Default Alt Text
D6859.diff (1 KB)

Event Timeline