Skip to content

Commit 00e9c52

Browse files
committed
docs, graph: Remove unused env var GRAPH_DISABLE_SUBSCRIPTION_NOTIFICATIONS
1 parent 4fc0b62 commit 00e9c52

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

docs/environment-variables.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,6 @@ those.
120120
- `GRAPH_SQL_STATEMENT_TIMEOUT`: the maximum number of seconds an
121121
individual SQL query is allowed to take during GraphQL
122122
execution. Default: unlimited
123-
- `GRAPH_DISABLE_SUBSCRIPTION_NOTIFICATIONS`: disables the internal
124-
mechanism that is used to trigger updates on GraphQL subscriptions. When
125-
this variable is set to any value, `graph-node` will still accept GraphQL
126-
subscriptions, but they won't receive any updates.
127123
- `ENABLE_GRAPHQL_VALIDATIONS`: enables GraphQL validations, based on the GraphQL specification.
128124
This will validate and ensure every query executes follows the execution
129125
rules. Default: `false`

graph/src/env/store.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ pub struct EnvVarsStore {
4949
/// only as an emergency setting for the hosted service. Remove after
5050
/// 2022-07-01 if hosted service had no issues with it being `true`
5151
pub order_by_block_range: bool,
52-
/// Whether to disable the notifications that feed GraphQL
53-
/// subscriptions. When the flag is set, no updates
54-
/// about entity changes will be sent to query nodes.
55-
///
56-
/// Set by the flag `GRAPH_DISABLE_SUBSCRIPTION_NOTIFICATIONS`. Not set
57-
/// by default.
58-
pub disable_subscription_notifications: bool,
5952
/// Set by the environment variable `GRAPH_REMOVE_UNUSED_INTERVAL`
6053
/// (expressed in minutes). The default value is 360 minutes.
6154
pub remove_unused_interval: chrono::Duration,
@@ -163,7 +156,6 @@ impl From<InnerStore> for EnvVarsStore {
163156
typea_batch_size: x.typea_batch_size,
164157
typed_children_set_size: x.typed_children_set_size,
165158
order_by_block_range: x.order_by_block_range.0,
166-
disable_subscription_notifications: x.disable_subscription_notifications.0,
167159
remove_unused_interval: chrono::Duration::minutes(
168160
x.remove_unused_interval_in_minutes as i64,
169161
),
@@ -207,8 +199,6 @@ pub struct InnerStore {
207199
typed_children_set_size: usize,
208200
#[envconfig(from = "ORDER_BY_BLOCK_RANGE", default = "true")]
209201
order_by_block_range: EnvVarBoolean,
210-
#[envconfig(from = "GRAPH_DISABLE_SUBSCRIPTION_NOTIFICATIONS", default = "false")]
211-
disable_subscription_notifications: EnvVarBoolean,
212202
#[envconfig(from = "GRAPH_REMOVE_UNUSED_INTERVAL", default = "360")]
213203
remove_unused_interval_in_minutes: u64,
214204
#[envconfig(from = "GRAPH_STORE_RECENT_BLOCKS_CACHE_CAPACITY", default = "10")]

0 commit comments

Comments
 (0)