From 5ddb0b0d91c64296a193323ee060cf251860f2bf Mon Sep 17 00:00:00 2001 From: Filippo Costa Date: Wed, 23 Nov 2022 13:48:51 +0100 Subject: [PATCH] store: remove unused lazy_static! --- store/postgres/src/writable.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/store/postgres/src/writable.rs b/store/postgres/src/writable.rs index 9a6382ada9a..926ad38a43a 100644 --- a/store/postgres/src/writable.rs +++ b/store/postgres/src/writable.rs @@ -8,7 +8,6 @@ use graph::components::store::EntityKey; use graph::components::store::ReadStore; use graph::data::subgraph::schema; use graph::data_source::CausalityRegion; -use graph::env::env_var; use graph::prelude::{ BlockNumber, Entity, MetricsRegistry, Schema, SubgraphDeploymentEntity, SubgraphStore as _, BLOCK_NUMBER_MAX, @@ -31,16 +30,6 @@ use store::StoredDynamicDataSource; use crate::deployment_store::DeploymentStore; use crate::{primary, primary::Site, relational::Layout, SubgraphStore}; -graph::prelude::lazy_static! { - /// The size of the write queue; this many blocks can be buffered for - /// writing before calls to transact block operations will block. - /// Setting this to `0` disables pipelined writes, and writes will be - /// done synchronously. - pub static ref WRITE_QUEUE_SIZE: usize = { - env_var("GRAPH_STORE_WRITE_QUEUE", 5) - }; -} - /// A wrapper around `SubgraphStore` that only exposes functions that are /// safe to call from `WritableStore`, i.e., functions that either do not /// deal with anything that depends on a specific deployment