Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead code in a lazy_static! #4200

Merged
merged 1 commit into from
Nov 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions store/postgres/src/writable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down