Skip to content

Commit d444553

Browse files
committed
graph: Remove explorer-specific env vars
1 parent ab64dc6 commit d444553

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

graph/src/env/mod.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,6 @@ pub struct EnvVars {
168168
/// Set by the flag `GRAPH_LOG_TRIGGER_DATA`. Off by
169169
/// default.
170170
pub log_trigger_data: bool,
171-
/// Set by the environment variable `GRAPH_EXPLORER_TTL`
172-
/// (expressed in seconds). The default value is 10s.
173-
pub explorer_ttl: Duration,
174-
/// Set by the environment variable `GRAPH_EXPLORER_LOCK_THRESHOLD`
175-
/// (expressed in milliseconds). The default value is 100ms.
176-
pub explorer_lock_threshold: Duration,
177-
/// Set by the environment variable `GRAPH_EXPLORER_QUERY_THRESHOLD`
178-
/// (expressed in milliseconds). The default value is 500ms.
179-
pub explorer_query_threshold: Duration,
180171
/// Set by the environment variable `EXTERNAL_HTTP_BASE_URL`. No default
181172
/// value is provided.
182173
pub external_http_base_url: Option<String>,
@@ -313,9 +304,6 @@ impl EnvVars {
313304
postpone_attribute_index_creation: inner.postpone_attribute_index_creation.0
314305
|| cfg!(debug_assertions),
315306
log_trigger_data: inner.log_trigger_data.0,
316-
explorer_ttl: Duration::from_secs(inner.explorer_ttl_in_secs),
317-
explorer_lock_threshold: Duration::from_millis(inner.explorer_lock_threshold_in_msec),
318-
explorer_query_threshold: Duration::from_millis(inner.explorer_query_threshold_in_msec),
319307
external_http_base_url: inner.external_http_base_url,
320308
external_ws_base_url: inner.external_ws_base_url,
321309
static_filters_threshold: inner.static_filters_threshold,
@@ -476,12 +464,6 @@ struct Inner {
476464
postpone_attribute_index_creation: EnvVarBoolean,
477465
#[envconfig(from = "GRAPH_LOG_TRIGGER_DATA", default = "false")]
478466
log_trigger_data: EnvVarBoolean,
479-
#[envconfig(from = "GRAPH_EXPLORER_TTL", default = "10")]
480-
explorer_ttl_in_secs: u64,
481-
#[envconfig(from = "GRAPH_EXPLORER_LOCK_THRESHOLD", default = "100")]
482-
explorer_lock_threshold_in_msec: u64,
483-
#[envconfig(from = "GRAPH_EXPLORER_QUERY_THRESHOLD", default = "500")]
484-
explorer_query_threshold_in_msec: u64,
485467
#[envconfig(from = "EXTERNAL_HTTP_BASE_URL")]
486468
external_http_base_url: Option<String>,
487469
#[envconfig(from = "EXTERNAL_WS_BASE_URL")]

0 commit comments

Comments
 (0)