Skip to content

Commit 47e2fc6

Browse files
author
Jorge Olivero
committed
main: fix boolean check
1 parent 09ea25d commit 47e2fc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ fn async_main() -> impl Future<Item = (), Error = ()> + Send + 'static {
335335
debug!(logger, "Setting up Sentry");
336336

337337
// Obtain DISABLE_BLOCK_INGESTOR setting
338-
let disable_block_ingestor = matches
338+
let disable_block_ingestor: bool = matches
339339
.value_of("disable-block-ingestor")
340340
.unwrap()
341341
.parse()
@@ -524,7 +524,7 @@ fn async_main() -> impl Future<Item = (), Error = ()> + Send + 'static {
524524
let mut subscription_server =
525525
GraphQLSubscriptionServer::new(&logger, graphql_runner.clone(), generic_store.clone());
526526

527-
if disable_block_ingestor {
527+
if !disable_block_ingestor {
528528
// BlockIngestor must be configured to keep at least REORG_THRESHOLD ancestors,
529529
// otherwise BlockStream will not work properly.
530530
// BlockStream expects the blocks after the reorg threshold to be present in the

0 commit comments

Comments
 (0)