Skip to content

Commit 3e59d41

Browse files
author
Jorge Olivero
committed
main: Ensure connection pool size is > 1
1 parent c7fe469 commit 3e59d41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

node/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ fn async_main() -> impl Future<Item = (), Error = ()> + Send + 'static {
348348
.parse()
349349
.expect("Invalid store connection pool size value");
350350

351+
// Minimum of two connections needed for the pool in order for the Store to bootstrap
352+
assert!(store_conn_pool_size > 1);
353+
351354
// Set up Sentry, with release tracking and panic handling;
352355
// fall back to an empty URL, which will result in no errors being reported
353356
let sentry_url = env::var_os("THEGRAPH_SENTRY_URL").unwrap_or_else(|| "".into());

0 commit comments

Comments
 (0)