Skip to content

Commit

Permalink
main: Replace assert! with if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Olivero committed Jul 25, 2019
1 parent cb33cd7 commit cdfced9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ fn async_main() -> impl Future<Item = (), Error = ()> + Send + 'static {
.expect("invalid --store-connection-pool-size/STORE_CONNECTION_POOL_SIZE value");

// Minimum of two connections needed for the pool in order for the Store to bootstrap
assert!(store_conn_pool_size > 1);
if store_conn_pool_size <= 1 {
panic!("--store-connection-pool-size/STORE_CONNECTION_POOL_SIZE must be > 1")
}

// Set up Sentry, with release tracking and panic handling;
// fall back to an empty URL, which will result in no errors being reported
Expand Down

0 comments on commit cdfced9

Please sign in to comment.